From 7658697c7c837dd938b6a9bfc2605b0f1e3a7d43 Mon Sep 17 00:00:00 2001 From: Franck FERMAN Date: Tue, 24 Oct 2023 18:07:16 +0000 Subject: [PATCH] Minor change to improve problem detection. --- src/MetaDetective/MetaDetective.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MetaDetective/MetaDetective.py b/src/MetaDetective/MetaDetective.py index b37af0c..f72f57f 100644 --- a/src/MetaDetective/MetaDetective.py +++ b/src/MetaDetective/MetaDetective.py @@ -837,13 +837,13 @@ def fetch_links_from_url(url: str) -> List[str]: return parser.links except urllib.error.URLError as e: - print(f"ERROR: Unable to open {url}. Reason: {e}") + print(f"ERROR: Unable to open {url} Reason: {e}") return [] except urllib.error.HTTPError as e: - print(f"HTTP Error for URL {url}. Reason: {e.code} - {e.reason}") + print(f"HTTP Error for URL {url} Reason: {e.code} - {e.reason}") return [] except ValueError as e: - print(f"ERROR: Unable to decode data from {url}. Reason: {e}") + print(f"ERROR: Unable to decode data from {url} Reason: {e}") return []