From 3f346f79b6e1604aa6205d737e8955a9695facc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=93=E6=BE=84qwq?= Date: Thu, 22 Feb 2024 20:49:38 +0800 Subject: [PATCH] chore: update --- common/variable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/variable.py b/common/variable.py index c4bb2fb..4772063 100644 --- a/common/variable.py +++ b/common/variable.py @@ -15,7 +15,7 @@ def _read_config_file(): with open("./config/config.json", "r", encoding = "utf-8") as f: return _json.load(f) except: - pass + return {} def _read_config(key): try: @@ -41,7 +41,7 @@ _lm = _read_config("common.log_file") _ll = _read_config("common.log_length_limit") debug_mode = _dm if (_dm) else False log_length_limit = _ll if (_ll) else 500 -log_file = _lm if (not isinstance(_lm , type(None))) else True +log_file = _lm if (isinstance(_lm , bool)) else True running = True config = {} workdir = _os.getcwd() @@ -51,4 +51,4 @@ fake_ip = None aioSession = None qdes_lib_loaded = False use_cookie_pool = False -running_ports = [] \ No newline at end of file +running_ports = []