From d9a77efa8f1fae4bc73791a893c86969de22aa23 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Mon, 7 Oct 2024 23:50:10 +0800 Subject: [PATCH] google auth: raise on credentials error --- automon/integrations/google/auth/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automon/integrations/google/auth/config.py b/automon/integrations/google/auth/config.py index 1b2b0109..665bfcbb 100644 --- a/automon/integrations/google/auth/config.py +++ b/automon/integrations/google/auth/config.py @@ -58,7 +58,7 @@ def Credentials(self): except: pass - logger.error(f'Missing GOOGLE_CREDENTIALS or GOOGLE_CREDENTIALS_BASE64') + raise Exception(f'Missing GOOGLE_CREDENTIALS or GOOGLE_CREDENTIALS_BASE64') @property def _GOOGLE_CREDENTIALS(self):