mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix #1936 : Referenced before assignment error in json_api
This commit is contained in:
parent
3b1ac4e81f
commit
a01f45cc7a
1 changed files with 12 additions and 10 deletions
|
@ -747,6 +747,8 @@ class WebApi(JSONComponent):
|
||||||
try:
|
try:
|
||||||
host_id, host, port, user, password = self.get_host(host_id)
|
host_id, host, port, user, password = self.get_host(host_id)
|
||||||
except TypeError, e:
|
except TypeError, e:
|
||||||
|
host = None
|
||||||
|
port = None
|
||||||
return response(_("Offline"))
|
return response(_("Offline"))
|
||||||
|
|
||||||
def on_connect(connected, c, host_id):
|
def on_connect(connected, c, host_id):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue