Fix error on containerless networks

This commit is contained in:
LeoVerto 2018-11-08 14:59:01 +01:00
parent 4390b6da78
commit ba2ca68284

View file

@ -93,6 +93,7 @@ def generate_graph(verbose: bool, file: str):
style='filled'
)
if net['Containers']:
for container_id, container in sorted(net['Containers'].items()):
if verbose:
dump_json(container)