From 8645bdfb4d4ad1368407f80b7fa5c5891c680497 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Mon, 19 Oct 2026 13:43:53 +0000 Subject: [PATCH] housekeeping: a null page is an empty one (Gitea answers no reactions with null) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017K4vyY3yUD3GsvoZaAtKkD --- .github/time/housekeeping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/time/housekeeping.py b/.github/time/housekeeping.py index ee019fc..2b41fcd 100644 --- a/.github/time/housekeeping.py +++ b/.github/time/housekeeping.py @@ -46,7 +46,7 @@ def paged(path: str, pages: int = 40) -> list[dict]: sep = "&" if "?" in path else "?" out: list[dict] = [] for page in range(1, pages + 1): - batch = tm.gh("GET", f"{path}{sep}limit=50&page={page}") + batch = tm.gh("GET", f"{path}{sep}limit=50&page={page}") or [] # Gitea answers an issue with no reactions with null out += batch if len(batch) < 50: break