From b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 18 Dec 2014 23:36:31 +0100 Subject: Fix a hidden traceback in /set completion --- src/core/completions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/completions.py b/src/core/completions.py index bdba6362..c793fa52 100644 --- a/src/core/completions.py +++ b/src/core/completions.py @@ -315,7 +315,8 @@ def completion_set(self, the_input): return the_input.new_completion([''], n, quotify=True) plugin = self.plugin_manager.plugins[plugin_name] end_list = set(plugin.config.options(section or plugin_name)) - end_list.update(plugin.config.default.get(section or plugin_name, {})) + if plugin.config.default: + end_list.update(plugin.config.default.get(section or plugin_name, {})) end_list = list(end_list) end_list.sort() elif not config.has_option('Poezio', args[1]): -- cgit v1.2.3