forked from kenzuya/unshackle
fix(cacher): store a jwt with no exp claim without an expiration
This commit is contained in:
@@ -99,7 +99,7 @@ class Cacher:
|
||||
|
||||
if expiration is None:
|
||||
try:
|
||||
expiration = jwt.decode(self.data, options={"verify_signature": False})["exp"]
|
||||
expiration = jwt.decode(self.data, options={"verify_signature": False}).get("exp")
|
||||
except jwt.DecodeError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user