summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 9b3d3b1b..48042a29 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -798,7 +798,8 @@ class CommandCore:
info = ('%s=%s' % (option, value), 'Info')
else:
possible_section = args[0]
- if not config.has_option(possible_section) and config.has_section(possible_section):
+ if (not config.has_option(section='Poezio', option=possible_section)
+ and config.has_section(possible_section)):
section = possible_section
option = args[1]
value = config.get(option, section=section)