aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/xmltodict.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/xmltodict.py')
-rw-r--r--gsxws/xmltodict.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gsxws/xmltodict.py b/gsxws/xmltodict.py
index 25e0c6e..430df3e 100644
--- a/gsxws/xmltodict.py
+++ b/gsxws/xmltodict.py
@@ -17,7 +17,11 @@ class XmlDictObject(dict):
dict.__init__(self, initdict)
def __getattr__(self, item):
- v = self.__getitem__(item)
+
+ try:
+ v = self.__getitem__(item)
+ except KeyError:
+ return
if item in ["packingList", "proformaFileData", "returnLabelFileData"]:
v = base64.b64decode(v)