Skip to content

Commit 62cc3a7

Browse files
committed
if to_dict return None then this will trigger an exception
1 parent 94fe0e4 commit 62cc3a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/asammdf/blocks/conversion_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ def inverse_conversion(
292292
conversion_dict: v3b.ChannelConversionKwargs | v4b.ChannelConversionKwargs | dict[str, object]
293293
if not isinstance(conversion, dict):
294294
conversion_dict = to_dict(conversion)
295+
if conversion_dict is None:
296+
return None
295297
else:
296298
conversion_dict = conversion
297299

0 commit comments

Comments
 (0)