From f1b5502c61cfd1220644b25786fc17ef598363e8 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Mon, 27 Mar 2023 01:19:47 +0800 Subject: [PATCH] fix: common config lack bug #210 --- config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config.py b/config.py index 3c9ab17..a1e6a62 100644 --- a/config.py +++ b/config.py @@ -54,10 +54,7 @@ def channel_conf_val(channel_type, key, default=None): return val -def common_conf(): - return config.get('common') - - def common_conf_val(key, default=None): + if not config.get('common'): + return default return config.get('common').get(key, default) -