From 81f4466422bceb5e84473825b32fdfcaf704a80e Mon Sep 17 00:00:00 2001 From: Hal Ali Date: Mon, 23 Sep 2024 13:45:19 -0400 Subject: [PATCH] fix: invocation of pathlib.Path.open (#262) # Description Fixes a bug in how `pathlib.Path.open` is invoked. --- 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()