Skip to content

Commit

Permalink
Print more info on decompress error.
Browse files Browse the repository at this point in the history
  • Loading branch information
joanpc committed Mar 27, 2020
1 parent 948dfd3 commit a4b173f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noaweather/weathersource.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ def download(cls, url, file_path, binary=False, **kwargs):
os.rename(file_path, tmp_file)
cls.decompress_grib(tmp_file, file_path, wgrib2, spinfo)
util.remove(tmp_file)
except OSError:
raise GribDownloaderError('Unable to decompress: %s' % file_path)
except OSError as err:
raise GribDownloaderError('Unable to decompress: %s \n\t%s' % (file_path, str(err)))

return file_path

Expand Down

0 comments on commit a4b173f

Please sign in to comment.