diff options
Diffstat (limited to 'gsxws/xmltodict.py')
-rw-r--r-- | gsxws/xmltodict.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws/xmltodict.py b/gsxws/xmltodict.py index 430df3e..f041eb5 100644 --- a/gsxws/xmltodict.py +++ b/gsxws/xmltodict.py @@ -21,7 +21,7 @@ class XmlDictObject(dict): try: v = self.__getitem__(item) except KeyError: - return + raise AttributeError("Invalid attribute: %s" % item) if item in ["packingList", "proformaFileData", "returnLabelFileData"]: v = base64.b64decode(v) |