From a4de4cb5c0f5f580416a33cfb39edd2d632ccfc4 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Mon, 10 Jan 2022 21:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=87=BD=E6=95=B0=E5=8D=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=8E=A8=E9=80=81=E4=BF=AE=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index 3b226b3..9631a70 100644 --- a/index.py +++ b/index.py @@ -1,9 +1,15 @@ import main +import push import main_multi +from error import CookieError def main_handler(event: dict, context: dict): - main.main() + try: + status_code = main.main() + except CookieError: + status_code = 0 + push.push(status_code, "脚本已执行") print("云函数测试支持!") return 0