Skip to content

Commit a8662c7

Browse files
committed
fix usage of pathlib.Path.open
1 parent d3c6e02 commit a8662c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: target_snowflake/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_private_key(self):
141141
phrase = self.config.get("private_key_passphrase")
142142
encoded_passphrase = phrase.encode() if phrase else None
143143
if "private_key_path" in self.config:
144-
with Path.open(self.config["private_key_path"], "rb") as key:
144+
with Path(self.config["private_key_path"]).open("rb") as key:
145145
key_content = key.read()
146146
else:
147147
key_content = self.config["private_key"].encode()

0 commit comments

Comments
 (0)