Exit when something goes wrong
This commit is contained in:
parent
89021072c2
commit
ba054b9bc1
3
dump.py
3
dump.py
|
@ -187,8 +187,7 @@ def get_applications(device):
|
||||||
try:
|
try:
|
||||||
applications = device.enumerate_applications()
|
applications = device.enumerate_applications()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Failed to enumerate applications: %s' % e)
|
sys.exit('Failed to enumerate applications: %s' % e)
|
||||||
return
|
|
||||||
|
|
||||||
return applications
|
return applications
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue