mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Docker client occasionally returns a NoneType, so we have to catch the TypeError
This commit is contained in:
@@ -299,7 +299,7 @@ def list_groups():
|
||||
|
||||
try:
|
||||
port = client.port(container, ssh_port)[0]
|
||||
except (IndexError, AttributeError):
|
||||
except (IndexError, AttributeError, TypeError):
|
||||
port = dict()
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user