Update autocompose.py

Trying to iterate on cinspect['HostConfig']['PortBindings'] when it is equal to 'None' produces a TypeError
This commit is contained in:
Matt Davidson
2018-07-15 11:13:38 -04:00
committed by GitHub
parent f3f2eca906
commit bdb38eecac

View File

@@ -87,7 +87,7 @@ def generate(args):
else:
values['expose'] = expose_value
except KeyError:
except (KeyError, TypeError):
# No ports exposed/bound. Continue without them.
ports = None