Commit 7dc10413 authored by wang's avatar wang

ws 测试

parent e3d6fba4
......@@ -305,12 +305,12 @@ while True:
p = subprocess.Popen(['node', 'src_run3.js', selectId,f'z0t0U8fo={ck}', '11', token, proxy], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
output, err = p.communicate(timeout=30)
tmp = ''
if p.returncode == 0:
# tmp = ''
# if p.returncode == 0:
tmp = output.decode().split('\n')[-2]
else:
traceback.print_exc()
raise Exception(selectId)
# else:
# traceback.print_exc()
# raise Exception(selectId)
r: dict = json.loads(tmp)
# res = db.env_shape.update_one(
# {'_id': ObjectId(selectId)},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment