From a553dd5909199a70ee8b7d41f5136ef56dfabd38 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Sat, 15 Jan 2022 17:12:44 -0300 Subject: [PATCH] Mapped RequestException Exceptions --- scripts/validate/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate/links.py b/scripts/validate/links.py index d6d47b00..5d57416f 100644 --- a/scripts/validate/links.py +++ b/scripts/validate/links.py @@ -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}'