From 9f325429bd6ede4c887719e79143738a07b90c8e Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Fri, 1 Dec 2023 19:16:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/variable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/variable.py b/common/variable.py index 779a801..f4f1528 100644 --- a/common/variable.py +++ b/common/variable.py @@ -38,8 +38,8 @@ def _read_config(key): except: return None -debug_mode = _read_config("common.debug_mode") -log_length_limit = _read_config("common.log_length_limit") +debug_mode = _read_config("common.debug_mode") if _read_config("common.debug_mode") else False +log_length_limit = _read_config("common.log_length_limit") if _read_config("common.log_length_limit") else 500 running = True config = {} workdir = os.getcwd()