Docker client occasionally returns a NoneType, so we have to catch the TypeError
This commit is contained in:
parent
fd03cc04e6
commit
b9f7da7b44
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue