Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/snowflake/connector/aio/_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,10 @@ async def _request_exec(
RuntimeError,
AttributeError, # json decoding error
) as err:
if isinstance(err, RuntimeError) and "Event loop is closed" in str(err):
logger.info(
"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."
)
if is_login_request(full_url):
logger.debug(
"Hit a timeout error while logging in. Will be handled by "
Expand Down
Loading