Exit when something goes wrong
This commit is contained in:
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user