From 009a52d82bad44711cb3c0c0fab608a5df0cca08 Mon Sep 17 00:00:00 2001 From: Laura Barcziova Date: Fri, 20 Dec 2024 15:33:36 +0100 Subject: [PATCH] Use original message when wrapping exceptions --- ogr/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogr/abstract.py b/ogr/abstract.py index 4b8663d0..5af41f49 100644 --- a/ogr/abstract.py +++ b/ogr/abstract.py @@ -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