Skip to content
Snippets Groups Projects
Commit bb1c1e4e authored by Robert Eckelmann's avatar Robert Eckelmann Committed by Newbyte
Browse files

pmb/helpers/http.py: make useful error message incase of 404

parent fb7f5353
No related branches found
No related tags found
1 merge request!2389Draft: pmb/helpers/http.py: make useful error message incase of 404
......@@ -89,7 +89,7 @@ def retrieve(url, headers=None, allow_404=False):
# Handle 404
except urllib.error.HTTPError as e:
if e.code == 404 and allow_404:
logging.warning("WARNING: failed to retrieve content from: " + url)
logging.warning("WARNING: 404 received, failed to retrieve content from: " + url)
return None
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment