瀏覽代碼

增加重试机制

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:
         """
         获取文章