1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Docker client occasionally returns a NoneType, so we have to catch the TypeError

This commit is contained in:
Paul Durivage 2014-05-05 10:51:58 -05:00
parent fd03cc04e6
commit b9f7da7b44

View file

@ -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: