From 7aa6cbe3b0dfa8a50bc9e2bb3b6d55369d69864d Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sun, 11 Sep 2022 06:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=86=97=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 2 +- pt_site/UtilityTool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 68c28ab..7c24bc2 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -237,7 +237,7 @@ def do_update(request): print('开始拉取更新') # print(os.system('cat ./update.sh')) subprocess.Popen('chmod +x ./update.sh', shell=True) - p = subprocess.Popen('./update.sh', shell=True, stdout=subprocess.PIPE, bufsize=1) + p = subprocess.Popen('./update.sh', shell=True, stdout=subprocess.PIPE) p.wait() out = p.stdout.readlines() for i in out: diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 32b4a74..7440625 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -247,7 +247,7 @@ class PtSpider: }) return CommonResponse.success(data=cookies) except Exception as e: - raise + # raise return CommonResponse.error(msg='Cookies解析失败,请确认导入了正确的cookies备份文件!') def parse_cookie_expire(self, datas):