Skip to content

Commit

Permalink
ignore adb environment error
Browse files Browse the repository at this point in the history
  • Loading branch information
吴兴盛 committed Sep 19, 2016
1 parent 4ba792b commit a63cb3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions atxweb/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,12 @@ class DeviceHandler(tornado.web.RequestHandler):
def get(self):
'''get device list'''
global device
d = AdbClient().devices().keys()
print 'android device list:', d
try:
d = AdbClient().devices().keys()
print 'android device list:', d
except EnvironmentError as e:
print 'ERROR:', str(e)
d = []
self.write({'android':d, 'ios':[], 'serial':device and device.serial})

def post(self):
Expand Down

0 comments on commit a63cb3b

Please sign in to comment.