perf: 配置项目标值不合法时的输出

This commit is contained in:
RockChinQ
2024-01-12 16:29:04 +08:00
parent 28014512f7
commit aa768459c0

View File

@@ -71,7 +71,7 @@ def config_operation(cmd, params):
except KeyError:
reply = ["[bot]err:未找到配置项 {}".format(cfg_name)]
except NameError:
reply = ["[bot]err:配置项{}不合法(字符串需要使用双引号包裹)".format(cfg_name)]
reply = ["[bot]err:{}不合法(字符串需要使用双引号包裹)".format(cfg_value)]
except ValueError:
reply = ["[bot]err:未找到配置项 {}".format(cfg_name)]