Skip to content

Commit

Permalink
perf: 配置项目标值不合法时的输出
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jan 12, 2024
1 parent 2801451 commit aa76845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/qqbot/cmds/system/cconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit aa76845

Please sign in to comment.