Skip to content

Commit

Permalink
Minor change to improve problem detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
franckferman authored Oct 24, 2023
1 parent 2e52af5 commit 7658697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MetaDetective/MetaDetective.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []


Expand Down

0 comments on commit 7658697

Please # to comment.