From 73747b7e09c52e52a5928f3e647d7195501a64f2 Mon Sep 17 00:00:00 2001 From: Michael Harbarth Date: Tue, 27 Feb 2024 15:08:24 +0100 Subject: [PATCH] fix: support None typed serialization configuration instead of dict type only --- capella2polarion/converters/converter_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capella2polarion/converters/converter_config.py b/capella2polarion/converters/converter_config.py index 5c47face..6eed199d 100644 --- a/capella2polarion/converters/converter_config.py +++ b/capella2polarion/converters/converter_config.py @@ -201,6 +201,6 @@ def _force_dict( case list(): return {c: {} for c in config} case dict(): - return config + return {k: v or {} for k, v in config.items()} case _: raise TypeError("Unsupported Type")