Skip to content

Commit

Permalink
Try removing download error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Dec 30, 2023
1 parent 0c7a1fe commit 88b9e9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions otto/getdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ def download(url, location=DATA_DIR):
filename = path.join(location, basename) if location else basename
if path.isfile(filename):
return filename
try:
download_url(url, filename)
return filename
except Exception as e:
print('error downloading file', url, e)
print('downloading', url, 'to', filename)
download_url(url, filename)
return filename


def openCsv(path):
Expand Down

0 comments on commit 88b9e9e

Please sign in to comment.