File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,15 @@ def set_secret_context(self):
123123 secret_manager = SecretManagerFactory .get_secret_manager (self )
124124
125125 secret_key = f"{ self .tenant_id } _{ self .workflow_id } _secrets"
126- secret = secret_manager .read_secret (secret_name = secret_key , is_json = True )
127- self .secret_context = secret or {}
126+ try :
127+ secret = secret_manager .read_secret (secret_name = secret_key , is_json = True )
128+ self .secret_context = secret or {}
129+ except Exception :
130+ self .logger .warning (
131+ "Could not load secrets for workflow" ,
132+ extra = {"workflow_id" : self .workflow_id , "tenant_id" : self .tenant_id },
133+ )
134+ self .secret_context = {}
128135
129136 def get_full_context (self , exclude_providers = False , exclude_env = False ):
130137 """
You can’t perform that action at this time.
0 commit comments