From a8662c78cb6f8b6c0a749d827d49ab0f93708c47 Mon Sep 17 00:00:00 2001 From: Haleemur Ali Date: Mon, 23 Sep 2024 13:32:58 -0400 Subject: [PATCH] fix usage of pathlib.Path.open --- target_snowflake/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_snowflake/connector.py b/target_snowflake/connector.py index fcaadd5..01910c4 100644 --- a/target_snowflake/connector.py +++ b/target_snowflake/connector.py @@ -141,7 +141,7 @@ def get_private_key(self): phrase = self.config.get("private_key_passphrase") encoded_passphrase = phrase.encode() if phrase else None if "private_key_path" in self.config: - with Path.open(self.config["private_key_path"], "rb") as key: + with Path(self.config["private_key_path"]).open("rb") as key: key_content = key.read() else: key_content = self.config["private_key"].encode()