From d6c0d87f0a2ef3ea4cea2bda30468f806286a7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=BC=A6?= Date: Tue, 11 Oct 2022 14:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9D=92=E9=BE=99=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E4=B8=BB=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ql_main.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ql_main.py diff --git a/ql_main.py b/ql_main.py new file mode 100644 index 0000000..e293d1b --- /dev/null +++ b/ql_main.py @@ -0,0 +1,17 @@ +""" +new Env('米游社'); +""" +import notify +from loghelper import log +from error import CookieError +from main import main + +if __name__ == "__main__": + try: + status_code, message = main() + except CookieError: + status_code = 1 + message = "账号Cookie出错!" + log.error("账号Cookie有问题!") + notify.send("米游社", message) +