소스 검색

增加重试机制

luojunhui 3 달 전
부모
커밋
e1a1c4dd88
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      applications/wxSpiderApi.py

+ 1 - 1
applications/wxSpiderApi.py

@@ -36,7 +36,7 @@ class WeixinSpider(object):
         return response.json()
 
     @classmethod
-    # @retryOnNone()
+    @retryOnNone()
     def get_article_text(cls, content_link, is_count=False, is_cache=True) -> dict:
         """
         获取文章