Skip to content

Commit f8a4ae1

Browse files
committed
remove hack
1 parent 23864fe commit f8a4ae1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/firebolt_db/firebolt_async_dialect.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,7 @@ def connect(self, *arg: Any, **kw: Any) -> AsyncConnectionWrapper:
156156
# Synchronously establish a connection that can execute
157157
# asynchronous queries later
158158
conn_func = partial(self.dbapi.connect, *arg, **kw) # type: ignore[attr-defined] # noqa: F821,E501
159-
try:
160-
connection = run(conn_func)
161-
except RuntimeError as e:
162-
if "Attempted to call run() from inside a run()" in str(e):
163-
connection = await_only(conn_func())
164-
else:
165-
raise
159+
connection = run(conn_func)
166160
return AsyncConnectionWrapper(
167161
self,
168162
connection,

0 commit comments

Comments
 (0)