From 796a4e20fa108f5cd90f5c8ac08f73246e9e4a18 Mon Sep 17 00:00:00 2001 From: "Desai, Kartikey H" Date: Fri, 21 Feb 2020 15:26:19 -0500 Subject: [PATCH] Correct bug in recursive dict loop. Fixes #334 --- stix2/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stix2/base.py b/stix2/base.py index 22b1128..4248075 100644 --- a/stix2/base.py +++ b/stix2/base.py @@ -394,7 +394,6 @@ class _Observable(_STIXBase): streamlined_obj_vals.append(temp_deep_copy) else: streamlined_obj_vals.append(kwargs[key]) - if streamlined_obj_vals: data = canonicalize(streamlined_obj_vals, utf8=False) @@ -450,7 +449,7 @@ def _recursive_stix_to_dict(input_dict): elif isinstance(input_dict[key], list): _recursive_stix_list_to_dict(input_dict[key]) else: - return + pass def _recursive_stix_list_to_dict(input_list):