From 07a87fa15a939f1dcd13f7d456cf29af333eaa54 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 18 Nov 2017 23:46:35 +0000 Subject: [PATCH] [#3129|Console] Fix unable to use connect command from terminal The parsed_cmd passed to do_command was an argparse Namespace object which needed no further parsing so use exec_command instead. --- deluge/ui/console/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 0435a805a..01e2ac5e9 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -205,7 +205,7 @@ Please use commands from the command line, e.g.:\n d = None if not self.interactive and options.parsed_cmds[0].command == 'connect': - d = commander.do_command(options.parsed_cmds.pop(0)) + d = commander.exec_command(options.parsed_cmds.pop(0)) else: log.info('connect: host=%s, port=%s, username=%s, password=%s', options.daemon_addr, options.daemon_port, options.daemon_user, options.daemon_pass)