Skip to content

Commit

Permalink
fix: avoid overwriting connection args with none cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
Zane Clark committed Nov 15, 2024
1 parent 8ce89bc commit 3e21f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schemachange/session/SnowflakeSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def __init__(
"application": application,
"session_parameters": self.session_parameters,
}
connect_kwargs = {k: v for k, v in connect_kwargs.items() if v is not None}
self.logger.debug("snowflake.connector.connect kwargs", **connect_kwargs)
self.con = snowflake.connector.connect(**connect_kwargs)
print(f"Current session ID: {self.con.session_id}")
Expand Down

0 comments on commit 3e21f3c

Please sign in to comment.