mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-30 21:19:41 +02:00
Catching exception when unable to connect to device over TCP
This commit is contained in:
1 parent
94fd6b5208
commit
39b81214c2
1 file changed
+5
@@ -81,6 +81,11 @@ class AndroidExtraction(MVTModule):
|
|||||||
except UsbReadFailedError:
|
except UsbReadFailedError:
|
||||||
log.error("Unable to connect to the device over USB. Try to unplug, plug the device and start again.")
|
log.error("Unable to connect to the device over USB. Try to unplug, plug the device and start again.")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
except OSError as e:
|
||||||
|
if e.errno == 113 and self.serial:
|
||||||
|
log.critical("Unable to connect to the device %s: did you specify the correct IP addres?",
|
||||||
|
self.serial)
|
||||||
|
sys.exit(-1)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user