From a78a6bc328f1256dfaee1cc649abdddc7d96d0b5 Mon Sep 17 00:00:00 2001 From: Peter Payne Date: Mon, 13 May 2024 14:45:55 +1000 Subject: [PATCH] [WebUI]Fix Connection Manager stop daemon, return 5 elem from get_host_info() --- deluge/ui/hostlist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/hostlist.py b/deluge/ui/hostlist.py index 0dba1269e9..a5dbf73598 100644 --- a/deluge/ui/hostlist.py +++ b/deluge/ui/hostlist.py @@ -163,12 +163,12 @@ def get_host_info(self, host_id): host_id (str): The host id to get info on. Returns: - list: A list of (host_id, hostname, port, username). + list: A list of (host_id, hostname, port, username, password). """ for host_entry in self.config['hosts']: if host_entry[0] == host_id: - return host_entry[0:4] + return host_entry[0:5] else: return [] @@ -212,7 +212,7 @@ def on_connect_failed(reason, host_id): return status_offline try: - host_id, host, port, user = self.get_host_info(host_id) + host_id, host, port, user = self.get_host_info(host_id)[0:4] except ValueError: log.warning('Problem getting host_id info from hostlist') return defer.succeed(status_offline)