Skip to content

Commit

Permalink
fix: convert exception message to string for improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Jan 30, 2025
1 parent 9bafbd7 commit 22c219f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graze/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def _get_contents_of_url(self, url, file=None):
else:
return self.url_to_file_download(url, file)
except RequestFailure as e:
raise KeyError(e.args[0])
raise KeyError(str(e))

def download_to_file(self, url, file=None):
"""Download the contents of the url to the given filepath"""
Expand Down

0 comments on commit 22c219f

Please sign in to comment.