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 d3c6e02 commit a8662c7Copy full SHA for a8662c7
target_snowflake/connector.py
@@ -141,7 +141,7 @@ def get_private_key(self):
141
phrase = self.config.get("private_key_passphrase")
142
encoded_passphrase = phrase.encode() if phrase else None
143
if "private_key_path" in self.config:
144
- with Path.open(self.config["private_key_path"], "rb") as key:
+ with Path(self.config["private_key_path"]).open("rb") as key:
145
key_content = key.read()
146
else:
147
key_content = self.config["private_key"].encode()
0 commit comments