From 2881cf0ad54480243dc6d4a1ae49e5cf5f6daf23 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sun, 23 Oct 2022 08:41:49 +0200 Subject: [PATCH] Adjust integrity expiring logic --- twitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitch.py b/twitch.py index c4a6256..01c6618 100644 --- a/twitch.py +++ b/twitch.py @@ -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: