File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -530,11 +530,16 @@ def _load_from_exec_plugin(self):
530530 logging .error ('exec: missing token or clientCertificateData '
531531 'field in plugin output' )
532532 return None
533- if 'expirationTimestamp' in status :
534- self .expiry = parse_rfc3339 (status ['expirationTimestamp' ])
533+ if 'expirationTimestamp' in status :
534+ try :
535+ self .expiry = parse_rfc3339 (status ['expirationTimestamp' ])
536+ except ValueError as e :
537+ logging .error (f"Failed to parse expirationTimestamp: { status ['expirationTimestamp' ]!r} , error: { e } " )
538+ self .expiry = None
535539 return True
536540 except Exception as e :
537541 logging .error (str (e ))
542+
538543
539544 def _load_user_token (self ):
540545 base_path = self ._get_base_path (self ._user .path )
You can’t perform that action at this time.
0 commit comments