You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/snowflake/connector/aio/_network.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -815,6 +815,11 @@ async def _request_exec(
815
815
RuntimeError,
816
816
AttributeError, # json decoding error
817
817
) aserr:
818
+
ifisinstance(err, RuntimeError) and"Event loop is closed"instr(err):
819
+
logger.info(
820
+
"If you see the logging error message 'RuntimeError: Event loop is closed' during program exit, it probably indicates that the connection was not closed properly before the event loop was shut down. Please use SnowflakeConnection.close() to close connection."
821
+
)
822
+
raiseerr
818
823
ifis_login_request(full_url):
819
824
logger.debug(
820
825
"Hit a timeout error while logging in. Will be handled by "
0 commit comments