From dbe9c3f0875c9b49579580017add733432e01e06 Mon Sep 17 00:00:00 2001 From: Liam Sennitt Date: Fri, 1 Jun 2018 13:49:32 +0100 Subject: [PATCH] fix custom STIX objects with nested dictionary error #184 --- stix2/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stix2/utils.py b/stix2/utils.py index 619652a..5bbf99f 100644 --- a/stix2/utils.py +++ b/stix2/utils.py @@ -203,6 +203,8 @@ def find_property_index(obj, properties, tuple_to_find): tuple_to_find) if val is not None: return val + else: + return 0 def new_version(data, **kwargs):