From 616d0d2c7301f5e287fb7daf24a835f8dbf250ba Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 29 Oct 2014 23:28:20 +0100 Subject: Fix two potential tracebacks on /set completion --- src/core/completions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/completions.py b/src/core/completions.py index ca0bb41e..bc21a6c0 100644 --- a/src/core/completions.py +++ b/src/core/completions.py @@ -324,7 +324,7 @@ def completion_set(self, the_input): if '|' in args[1]: plugin_name, section = args[1].split('|')[:2] if not plugin_name in self.plugin_manager.plugins: - return the_input.auto_completion([''], n, quotify=True) + return the_input.new_completion([''], n, quotify=True) plugin = self.plugin_manager.plugins[plugin_name] end_list = plugin.config.options(section or plugin_name) elif not config.has_option('Poezio', args[1]): @@ -339,7 +339,7 @@ def completion_set(self, the_input): if '|' in args[1]: plugin_name, section = args[1].split('|')[:2] if not plugin_name in self.plugin_manager.plugins: - return the_input.auto_completion([''], n, quotify=True) + return the_input.new_completion([''], n, quotify=True) plugin = self.plugin_manager.plugins[plugin_name] end_list = [plugin.config.get(args[2], '', section or plugin_name), ''] else: -- cgit v1.2.3