소스 검색

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: