Skip to content

Commit

Permalink
Updated wget error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
sambowers committed Feb 6, 2018
1 parent 950b075 commit 69ae15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biota/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def download(url, output_dir = os.getcwd()):
if exit_status == 8:
raise ValueError('Download failed: a tile for that location was not found on the FTP server.')
if exit_status != 0:
raise ValueError('Download failed with wget code %s.'%str(exit_status))
raise ValueError('Download failed with wget error code %s.'%str(exit_status))

# Determine absolute path of downloaded file
filepath = '%s/%s'%(output_dir.rstrip('/'), url.split('/')[-1])
Expand Down

0 comments on commit 69ae15b

Please sign in to comment.