Explicitly check for None, when intention is to set empty values or False. fixes #17
parent
5dc049d65a
commit
4d58fc3dbb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue