summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-18 23:36:31 +0100
committermathieui <mathieui@mathieui.net>2014-12-18 23:36:31 +0100
commitb720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d (patch)
treebe4672a6d8fc73bebe96f65d8ead3b327191c08b
parent631f5dd42a31f90ffcf7c08557db863069e60017 (diff)
downloadpoezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.gz
poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.bz2
poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.tar.xz
poezio-b720a3f8ca57c9b126dfb0abb88cbc6ee3edf33d.zip
Fix a hidden traceback in /set completion
-rw-r--r--src/core/completions.py3
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]):