From d3398a4cd217f423ee92ee08847673af75d1d14e Mon Sep 17 00:00:00 2001 From: Daniel Samuels Date: Wed, 17 Oct 2018 16:03:02 +0100 Subject: [PATCH] Correct `isinstance` check for status_detail items. Fixes #230 --- libtaxii/messages_11.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtaxii/messages_11.py b/libtaxii/messages_11.py index ffb4205..7a96d57 100644 --- a/libtaxii/messages_11.py +++ b/libtaxii/messages_11.py @@ -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: