From f4bc3f756857055a6adddfcb1b932c26b05cbd53 Mon Sep 17 00:00:00 2001 From: dece Date: Sun, 2 Jan 2022 17:33:52 +0100 Subject: [PATCH] help: bad fix for missing config keys The unknown config value will be displayed without warning or anything to the user in the help page, which can be confusing e.g. when mixing dash and underscore in keys. oh well --- bebop/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bebop/help.py b/bebop/help.py index e7b5fe1..3288b71 100644 --- a/bebop/help.py +++ b/bebop/help.py @@ -104,7 +104,7 @@ def get_help(config, plugins): config_list = "\n".join( ( f"* {key} = {config[key]} (default {repr(DEFAULT_CONFIG[key])})" - if config[key] != DEFAULT_CONFIG[key] + if key in DEFAULT_CONFIG and config[key] != DEFAULT_CONFIG[key] else f"* {key} = {config[key]}" ) for key in sorted(config)