From ac0d274e0f402004d10a5f447a565d65eadaa285 Mon Sep 17 00:00:00 2001 From: sebimoe Date: Thu, 16 Jan 2025 04:19:35 +0000 Subject: [PATCH] Fixed crash when network config is None --- src/autocompose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autocompose.py b/src/autocompose.py index 30e87fe..5cb5465 100644 --- a/src/autocompose.py +++ b/src/autocompose.py @@ -51,7 +51,7 @@ def generate_network_info(): "driver": network_attributes.get("IPAM", {}).get("Driver", "default"), "config": [ {key.lower(): value for key, value in config.items()} - for config in network_attributes.get("IPAM", {}).get("Config", []) + for config in network_attributes.get("IPAM", {}).get("Config", []) or [] ], }, }