优化冗余代码

This commit is contained in:
ngfchl
2022-09-11 06:10:37 +08:00
parent 367a3b2d86
commit 7aa6cbe3b0
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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):