mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-02 18:22:21 +08:00
fix: 配置文件不存在时的报错问题
This commit is contained in:
parent
c0f2f35814
commit
9f325429bd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user