From b2b45e9ff603abe67e5e7dc38cfe371583bdffd1 Mon Sep 17 00:00:00 2001 From: weilinfox Date: Mon, 15 Feb 2021 18:25:31 +0800 Subject: [PATCH] fix run.py ssl error --- worker/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/run.py b/worker/run.py index 4fd1af6..e46855d 100644 --- a/worker/run.py +++ b/worker/run.py @@ -79,6 +79,6 @@ def glot(name, content, url): "content": content, }] } - resp = requests.post(url=url, headers=headers, json=data).json() + resp = requests.post(url=url, headers=headers, json=data, verify=False).json() r = f"stdout:\n{resp['stdout']}\nstderr:\n{resp['stderr']}\nerror:\n{resp['error']}" - return r \ No newline at end of file + return r