From f097efd85221b30cd5293b3f7dc52ccbb6fdc05c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 31 Oct 2014 15:54:33 +0100 Subject: Fix some tracebacks on /set completion (introduced by the automated default arguments of config.get) --- src/core/completions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/completions.py b/src/core/completions.py index bc21a6c0..9549c13f 100644 --- a/src/core/completions.py +++ b/src/core/completions.py @@ -334,19 +334,19 @@ def completion_set(self, the_input): else: end_list = [] else: - end_list = [config.get(args[1], ''), ''] + end_list = [str(config.get(args[1], '')), ''] elif n == 3: if '|' in args[1]: plugin_name, section = args[1].split('|')[:2] if not plugin_name in self.plugin_manager.plugins: 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), ''] + end_list = [str(plugin.config.get(args[2], '', section or plugin_name)), ''] else: if not config.has_section(args[1]): end_list = [''] else: - end_list = [config.get(args[2], '', args[1]), ''] + end_list = [str(config.get(args[2], '', args[1])), ''] else: return return the_input.new_completion(end_list, n, quotify=True) -- cgit v1.2.3