瀏覽代碼

offline-recommend

luojunhui 3 周之前
父節點
當前提交
d6011c72e7
共有 1 個文件被更改,包括 3 次插入0 次删除
  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: