commit | ecf8f2b7c8e68ee78c5a90ecd8a9b48e73195b80 | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri May 24 12:12:23 2013 +0900 |
committer | Chirayu Desai <cdesai@cyanogenmod.org> | Sat May 25 08:07:52 2013 +0530 |
tree | 58a1e2c6e9e1c4ea6d8147414dab358a24d45c14 | |
parent | 59bbb580e34bbc5dce76dacaad9ff94f21fa396f [diff] |
Handle HTTPException when attempting to get ssh_info The call to `urlopen` can raise `HTTPException`, but this is not caught which results in a python Traceback. Add handling of the exception. Because `HTTPException` and its derived classes do not have any message, print the name of the exception in the error message instead. Change-Id: Ic90fb4cc0e92702375cd976d4a03876c8ce8bffc