diff --git a/podman_compose.py b/podman_compose.py index c510d55..dc6aa4e 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1375,11 +1375,7 @@ def resolve_extends(services, service_names, environ): content = content["services"] subdirectory = os.path.dirname(filename) content = rec_subs(content, environ) - from_service = ( - {} - if content.get(from_service_name, {}) is None - else content.get(from_service_name, {}) - ) + from_service = content.get(from_service_name, {}) or {} normalize_service(from_service, subdirectory) else: from_service = services.get(from_service_name, {}).copy()