Skip to content

Commit

Permalink
Redirects have 404 code. (#1471)
Browse files Browse the repository at this point in the history
do not quit because of 404 code
  • Loading branch information
henrykironde committed Apr 19, 2020
1 parent e649be2 commit 1f56c27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions retriever/lib/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ def download_file(self, url, filename):
)

if response.status_code == 404:
print("Error 404: The data source or server not found")
os.remove(path)
return None
print("The data source or server may be redirected or not found")

except InvalidSchema:
try:
Expand Down

0 comments on commit 1f56c27

Please sign in to comment.