From d4071b6579312b2fb265e379031f588354d35f3a Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Fri, 2 Oct 2020 14:12:09 +0200 Subject: solve usb error bug with quotes message --- test-cli/test/tests/qusb.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test-cli/test/tests/qusb.py') 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, '' -- cgit v1.1