diff --git a/duckdb_engine/__init__.py b/duckdb_engine/__init__.py index ad4dda56..060daebe 100644 --- a/duckdb_engine/__init__.py +++ b/duckdb_engine/__init__.py @@ -21,7 +21,7 @@ class DBAPI: threadsafety = duckdb.threadsafety # this is being fixed upstream to add a proper exception hierarchy - Error = RuntimeError + Error = getattr(duckdb, "Error", RuntimeError) @staticmethod def Binary(x: Any) -> Any: