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:
tivaliy 2016-03-04 13:24:41 +02:00
parent 15ebb0d4bb
commit 9640ea2f84
1 changed files with 3 additions and 1 deletions

View File

@ -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