mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-01 19:27:03 +02:00
Mapped RequestException Exceptions
This commit is contained in:
parent
8c28be1497
commit
a553dd5909
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ def check_if_link_is_working(link: str) -> Tuple[bool, str]:
|
|||
has_error = True
|
||||
error_message = f'ERR:TMR: {error} : {link}'
|
||||
|
||||
except Exception as error:
|
||||
except (Exception, requests.exceptions.RequestException) as error:
|
||||
has_error = True
|
||||
error_message = f'ERR:UKN: {error} : {link}'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue