Adjust integrity expiring logic

This commit is contained in:
DevilXD committed 2022-10-23 08:41:49 +02:00
1 parent fee022b5a4
commit 2881cf0ad5
1 file changed
+2 -2
+2 -2
View File
@@ -76,8 +76,8 @@ class _AuthState:
@property
def integrity_expired(self) -> bool:
return (
hasattr(self, "integrity_expires")
and datetime.now(timezone.utc) >= self.integrity_expires
not hasattr(self, "integrity_expires")
or datetime.now(timezone.utc) >= self.integrity_expires
)
def _hasattrs(self, *attrs: str) -> bool: