Skip to content

Commit

Permalink
fix: improve error handling by converting exception to string in vali…
Browse files Browse the repository at this point in the history
…date_key_and_raise_key_error_on_exception
  • Loading branch information
thorwhalen committed Jan 30, 2025
1 parent 207d195 commit aa8616b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dol/filesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def wrapped_method(self, k, *args, **kwargs):
try:
return func(self, k, *args, **kwargs)
except Exception as e:
raise KeyError(e)
raise KeyError(str(e))

return wrapped_method

Expand Down

0 comments on commit aa8616b

Please sign in to comment.