mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-26 06:18:58 +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:
|
||||
log.error("Unable to connect to the device over USB. Try to unplug, plug the device and start again.")
|
||||
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:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user