From c8b9eab53d7f78802a0c854ea67272e23482d4c0 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Wed, 31 Mar 2021 16:49:14 -0400 Subject: [PATCH] Fixed some more silliness in properties.py... was it a rebase glitch? Something else I overlooked? Not sure. --- stix2/properties.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/stix2/properties.py b/stix2/properties.py index 52e37e9..55c5625 100644 --- a/stix2/properties.py +++ b/stix2/properties.py @@ -757,12 +757,11 @@ class ObservableProperty(Property): has_custom = True if not allow_custom and has_custom: - if parsed_obj.has_custom: - raise CustomContentError( - "customized {} observable found".format( - parsed_obj["type"], - ), - ) + raise CustomContentError( + "customized {} observable found".format( + parsed_obj["type"], + ), + ) dictified[key] = parsed_obj