Skip to content

Commit 0c93596

Browse files
committed
Fix a small logic error in GCRACooldowns
1 parent 96ba2ed commit 0c93596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/ext/commands/cooldowns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def reset(self) -> None:
252252
self._tat = None
253253

254254
def is_ratelimited(self, *, now: datetime.datetime | None = None) -> bool:
255-
now = datetime.datetime.now(tz=datetime.UTC) or now
255+
now = now or datetime.datetime.now(tz=datetime.UTC)
256256
tat: datetime.datetime = max(self._tat or now, now)
257257

258258
separation: float = (tat - now).total_seconds()

0 commit comments

Comments
 (0)