Skip to content

Commit

Permalink
Correct isinstance check for status_detail items. Fixes #230
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsamuels committed Oct 17, 2018
1 parent f515c06 commit d3398a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtaxii/messages_11.py
Original file line number Diff line number Diff line change
Expand Up @@ -3012,7 +3012,7 @@ def from_etree(cls, etree_xml):
if name not in kwargs['status_detail']:
kwargs['status_detail'][name] = v
else: # It already exists
if not isinstance(kwargs['status_detail'], list):
if not isinstance(kwargs['status_detail'][name], list):
kwargs['status_detail'][name] = [kwargs['status_detail'][name]] # Make it a list
kwargs['status_detail'][name].append(v)
else:
Expand Down

0 comments on commit d3398a4

Please sign in to comment.