We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2186a8 commit 6d517e2Copy full SHA for 6d517e2
dbutils/steady_db.py
@@ -148,7 +148,11 @@ def __init__(
148
# proper initialization of the connection
149
try:
150
self._creator = creator.connect
151
- self._dbapi = creator
+ try:
152
+ if creator.dbapi.connect:
153
+ self._dbapi = creator.dbapi
154
+ except AttributeError:
155
+ self._dbapi = creator
156
except AttributeError:
157
# try finding the DB-API 2 module via the connection creator
158
self._creator = creator
0 commit comments