summaryrefslogtreecommitdiff
path: root/test-cli/test/tests
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/tests')
-rw-r--r--test-cli/test/tests/qusb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-cli/test/tests/qusb.py b/test-cli/test/tests/qusb.py
index 3182685..4f76d0c 100644
--- a/test-cli/test/tests/qusb.py
+++ b/test-cli/test/tests/qusb.py
@@ -69,6 +69,8 @@ class Qusb(unittest.TestCase):
return False, 'md5 check failed {}<>{}'.format(originalMD5, md5val)
except OSError as why:
return False,'Error: {} tranfer failed'.format(why.errno)
+ except sh.ErrorReturnCode as shError:
+ return False, 'USB Exception: tranfer failed'
except Exception as details:
return False, 'USB Exception: {} tranfer failed'.format(details)
return True, ''