mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-29 07:39:00 +00:00
Catching exception when unable to connect to device over TCP
This commit is contained in:
parent
94fd6b5208
commit
39b81214c2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user