diff options
author | mathieui <mathieui@mathieui.net> | 2014-10-31 15:54:33 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-10-31 15:54:33 +0100 |
commit | f097efd85221b30cd5293b3f7dc52ccbb6fdc05c (patch) | |
tree | 731ebaa9a1f529ec1cfe69d4abcc1a079e1cd91a | |
parent | 58b424a9232dd215afbaf95e8831f09b1a0169c1 (diff) | |
download | poezio-f097efd85221b30cd5293b3f7dc52ccbb6fdc05c.tar.gz poezio-f097efd85221b30cd5293b3f7dc52ccbb6fdc05c.tar.bz2 poezio-f097efd85221b30cd5293b3f7dc52ccbb6fdc05c.tar.xz poezio-f097efd85221b30cd5293b3f7dc52ccbb6fdc05c.zip |
Fix some tracebacks on /set completion
(introduced by the automated default arguments of config.get)
-rw-r--r-- | src/core/completions.py | 6 |
1 files 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) |