Skip to content

Commit

Permalink
Use original message when wrapping exceptions (#884)
Browse files Browse the repository at this point in the history
Use original message when wrapping exceptions

Reviewed-by: Matej Focko
  • Loading branch information
softwarefactory-project-zuul[bot] authored Dec 23, 2024
2 parents 3590041 + 009a52d commit 31f2ff5
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 31f2ff5

Please sign in to comment.