From ca10fab94616007446a6c3908fb3f0da81272f6b Mon Sep 17 00:00:00 2001 From: Ali Hamza Date: Fri, 13 Mar 2026 20:44:34 +0100 Subject: [PATCH] Fix conditional assignment for list aA Added a simple check on line 26 so that it reads if a: aA += a. This ensures that empty lists or missing responses are safely ignored and the script can continue appending results for the rest of the years. --- .github/getTop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/getTop.py b/.github/getTop.py index 4936c5b..ef6d4e6 100644 --- a/.github/getTop.py +++ b/.github/getTop.py @@ -23,7 +23,7 @@ def log(s): log("|star|updated_at|name|url|des|") log("|---|---|---|---|---|") #a.sort(key=cmpfun,reverse=True) - aA += a + if a: aA += a # a = x1 for x in a: try: