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 265f44f commit 9b75d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gestalt/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def _validate_token_expiration(self):
if token_details['data'] is not None:

# Validate expire_time is present
if token_details['data']['expire_time'] is not None:
raise ValueError(f"Cannot parse to expire_time, value is None: {token_details['data']}")
if token_details['data']['expire_time'] is None:
raise ValueError(f"Cannot parse expire_time, value is None: {token_details['data']}")

expire_time = datetime.fromisoformat(str(token_details['data']['expire_time']))
threshold = timedelta(days=EXPIRATION_THRESHOLD_DAYS)
Expand Down

0 comments on commit 9b75d72

Please sign in to comment.