diff options
author | mathieui <mathieui@mathieui.net> | 2014-12-18 23:36:31 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-12-18 23:36:31 +0100 |
commit | b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d (patch) | |
tree | be4672a6d8fc73bebe96f65d8ead3b327191c08b /src | |
parent | 631f5dd42a31f90ffcf7c08557db863069e60017 (diff) | |
download | poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.gz poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.bz2 poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.xz poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.zip |
Fix a hidden traceback in /set completion
Diffstat (limited to 'src')
-rw-r--r-- | src/core/completions.py | 3 |
1 files changed, 2 insertions, 1 deletions
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]): |