소스 검색

刚刚都传——修改日志——2023/10/20

罗俊辉 1 년 전
부모
커밋
6c2f13f2fc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      ganggangdouchuan/ganggangdouchuan_recommend/ganggangdouchuan_recommend2.py

+ 2 - 1
ganggangdouchuan/ganggangdouchuan_recommend/ganggangdouchuan_recommend2.py

@@ -148,7 +148,8 @@ class GGDCScheduling:
                 result = json.loads(decrypted_data)
                 break
             except:
-                print("编码不对,解密失败, 等待10秒钟")
+                Common.logger(self.log_type, self.crawler).info("编码不对,解密失败, 等待10秒钟后重试\n")
+                # print("编码不对,解密失败, 等待10秒钟")
                 time.sleep(10)
 
         if "totalCount" not in result or response.status_code != 200: