diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-03-22 11:14:40 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-03-22 11:14:40 +0200 |
commit | 90cb38e43979668112ed6c38da8a8734ea30eee1 (patch) | |
tree | 0b2d60dffd6baf4e12240f8ac839f6f4eeed8270 /gsxws.py | |
parent | 9b6935a7d5e92b0bf3463781b4d460d9d8445771 (diff) | |
download | py-gsxws-90cb38e43979668112ed6c38da8a8734ea30eee1.tar.gz py-gsxws-90cb38e43979668112ed6c38da8a8734ea30eee1.tar.bz2 py-gsxws-90cb38e43979668112ed6c38da8a8734ea30eee1.zip |
Throw GsxError in Returns.get_label
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -456,7 +456,11 @@ class Returns(GsxObject): dt.partNumber = part_number dt.userSession = SESSION - result = CLIENT.service.ReturnLabel(dt) + try: + result = CLIENT.service.ReturnLabel(dt) + except suds.WebFault, e: + raise GsxError(fault=e) + el = ET.fromstring(result).findall('*//%s' % 'returnLabelData')[0] for r in el.iter(): |