Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jboucourt committed Aug 6, 2024
1 parent 27eed33 commit 960425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gestalt/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _validate_token_expiration(self):
token_details = self.vault_client.auth.token.lookup_self()
if token_details['data'] is not None:
# Validate expire_time is present
if token_details['data']['expire_time'] is None:
if token_details['data'] is None or token_details['data']['expire_time'] is None:
print(f"Cannot parse expire_time, value is None: {token_details['data']}")
return None

Expand Down

0 comments on commit 960425f

Please sign in to comment.