mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-05 16:18:02 +00:00
Update autocompose.py
Trying to iterate on cinspect['HostConfig']['PortBindings'] when it is equal to 'None' produces a TypeError
This commit is contained in:
@@ -87,7 +87,7 @@ def generate(args):
|
|||||||
else:
|
else:
|
||||||
values['expose'] = expose_value
|
values['expose'] = expose_value
|
||||||
|
|
||||||
except KeyError:
|
except (KeyError, TypeError):
|
||||||
# No ports exposed/bound. Continue without them.
|
# No ports exposed/bound. Continue without them.
|
||||||
ports = None
|
ports = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user