From 2c80458cad28b65a5cf24abb25fc295f5d6396f1 Mon Sep 17 00:00:00 2001 From: Alex Wurts Date: Thu, 31 Oct 2024 15:27:29 -0400 Subject: [PATCH] fix: crash from signing keybug --- tap_github/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_github/client.py b/tap_github/client.py index aa8aadb..0abd0e9 100644 --- a/tap_github/client.py +++ b/tap_github/client.py @@ -256,8 +256,8 @@ def generate_jwt(self) -> str: env_github_jwt_signing_key = os.getenv("TAP_GITHUB_SIGNING_KEY") env_client_id = os.getenv("TAP_GITHUB_CLIENT_ID") - signing_key = self.config["signing_key"] or env_github_jwt_signing_key - client_id = self.config["client_id"] or env_client_id + signing_key = self.config.get("signing_key", None) or env_github_jwt_signing_key + client_id = self.config.get("client_id", None) or env_client_id payload = { # Issued at time