From 8a0c3d2985753e884f1b4d38dddd657cafbe1683 Mon Sep 17 00:00:00 2001 From: lerdb Date: Fri, 1 Dec 2023 23:16:52 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96?= 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 f4f1528..82e2050 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") 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 +debug_mode = debug_mode if (debug_mode := _read_config("common.debug_mode")) else False +log_length_limit = log_length_limit if (log_length_limit := _read_config("common.log_length_limit")) else 500 running = True config = {} workdir = os.getcwd()