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()