From 0e04d02d86c4f3e8d4ff3cf8d147e0707faedff9 Mon Sep 17 00:00:00 2001 From: Elliana May Date: Sat, 6 Aug 2022 22:50:33 +0800 Subject: [PATCH] fix: correct dialect error lookup for bleeding edge --- duckdb_engine/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: