Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roomservice: Handling URLError exception during fetch device process
BEFORE: humberos@fedora:/android/omni-6.0$ bib leo WARNING: Trying to fetch a device that's already there Traceback (most recent call last): File "build/tools/roomservice.py", line 319, in <module> fetch_dependencies(device) File "build/tools/roomservice.py", line 275, in fetch_dependencies fetch_device(device) File "build/tools/roomservice.py", line 287, in fetch_device git_data = search_gerrit_for_device(device) File "build/tools/roomservice.py", line 71, in search_gerrit_for_device response = urllib.request.urlopen(git_req) File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib64/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib64/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib64/python2.7/urllib2.py", line 1242, in https_open context=self._context) File "/usr/lib64/python2.7/urllib2.py", line 1199, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno -5] No address associated with hostname> AFTER: humberos@fedora:/android/omni-6.0$ bib leo WARNING: Trying to fetch a device that's already there WARNING: No network connection available. Signed-off-by: Humberto Borba <[email protected]> Change-Id: I18950704c5b7d13553374611d164c2464c1ceab2
- Loading branch information