Quellcode durchsuchen

offline-recommend

luojunhui vor 3 Wochen
Ursprung
Commit
d6011c72e7
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      app/domains/data_recycle_tasks/recycle_daily_publish_articles.py

+ 3 - 0
app/domains/data_recycle_tasks/recycle_daily_publish_articles.py

@@ -140,6 +140,9 @@ class RecycleDailyPublishArticlesTask(Const):
             response = await get_article_list_from_account(
                 account_id=account["gh_id"], index=cursor, is_cache=False
             )
+            if not response:
+                return
+
             response_code = response["code"]
             match response_code:
                 case self.ACCOUNT_FORBIDDEN_CODE: