fixed requests connection

This commit is contained in:
Abubakar Abid 2021-02-03 07:47:56 -06:00
parent 0c0c8109a6
commit db9c6bc603

View File

@ -311,5 +311,5 @@ def url_ok(url):
try:
r = requests.head(url)
return r.status_code == 200 or r.status_code == 401
except ConnectionError:
except (ConnectionError, requests.exceptions.ConnectionError):
return False