Skip to content

Commit

Permalink
fix: don't let bit_resp be unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Jul 17, 2024
1 parent be94284 commit 763d488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exts/autorunners.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ async def _start_reoccurring_lb(self) -> None:
)
bit.incrby("u1", "#0", 1)
bit_resp: list[int] = await bit.execute() # [0] or [1]
else:
bit_resp: list[int] = [1]

await utils.sleep_until(tomorrow)
await self.reoccurring_lb_loop(
Expand Down

0 comments on commit 763d488

Please sign in to comment.