Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 736510. fix updateSUT.py exception handling. r=jmaher

  • Loading branch information...
commit a7f6b892632c0a609afcce15128ae913e2127e3f 1 parent a8e973b
@armenzg armenzg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sut_tools/updateSUT.py
View
4 sut_tools/updateSUT.py
@@ -15,7 +15,7 @@ def main(deviceIP):
print "INFO: updateSUT.py: We're going to try to install SUTAgentAndroid Version %s" % target_version
try:
data = download_apk()
- except e:
+ except Exception, e:
print "ERROR: updateSUT.py: We have failed to retrieve the SUT Agent. %s" % e.reason
return 5
dm.sendCMD(['push /mnt/sdcard/%s %s\r\n' % (apkfilename, str(len(data))), data], newline=False)
@@ -38,7 +38,7 @@ def main(deviceIP):
try:
ver = version(dm)
- except e:
+ except Exception, e:
print "ERROR: updateSUT.py: We should have been able to get the version"
print "ERROR: updateSUT.py: %s" % e
return 5
Please sign in to comment.
Something went wrong with that request. Please try again.