Browse Source

offline-recommend

luojunhui 3 weeks ago
parent
commit
d6011c72e7
1 changed files with 3 additions and 0 deletions
  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: