Extend number of handled HTTP-based exceptions
We need to handle extra HTTPError-based exceptions while checking repositories. Change-Id: I484a8e2a6c3733e183f58ce968a9c22286fc79c2 Partial-Bug: #1542370
This commit is contained in:
parent
15ebb0d4bb
commit
9640ea2f84
@ -342,7 +342,9 @@ class bootstrapimg(urwid.WidgetWrap):
|
||||
def check_url(self, url, proxies):
|
||||
try:
|
||||
resp = requests.get(url, proxies=proxies, verify=False)
|
||||
except requests.exceptions.RequestException:
|
||||
except (requests.exceptions.RequestException,
|
||||
requests.exceptions.BaseHTTPError) as e:
|
||||
log.error(e)
|
||||
return False
|
||||
return resp.ok
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user