diff --git a/autocompose.py b/autocompose.py index 56d3149..8c45102 100644 --- a/autocompose.py +++ b/autocompose.py @@ -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