Explicitly check for None, when intention is to set empty values or False. fixes #17

stix2.1
Emmanuelle Vargas-Gonzalez 2017-06-01 15:25:03 -04:00
parent 5dc049d65a
commit 4d58fc3dbb
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class _STIXBase(collections.Mapping):
# Remove any keyword arguments whose value is None
setting_kwargs = {}
for prop_name, prop_value in kwargs.items():
if prop_value:
if prop_value is not None:
setting_kwargs[prop_name] = prop_value
# Detect any missing required properties