Skip to content

Commit

Permalink
Use original message when wrapping exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarcziova committed Dec 20, 2024
1 parent 3590041 commit 009a52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogr/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __wrap_exception(

for caught_exception, ogr_exception in MAPPING.items():
if isinstance(ex, caught_exception):
exc = ogr_exception()
exc = ogr_exception(str(ex))
exc.__cause__ = ex
return exc

Expand Down

0 comments on commit 009a52d

Please sign in to comment.