Fix a hidden traceback in /set completion

This commit is contained in:
mathieui 2014-12-18 23:36:31 +01:00
parent 631f5dd42a
commit b720a3f8ca
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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]):