mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
[#2705] [WebUI] Fix hostlist not being created
This commit is contained in:
parent
037063f24e
commit
f96f47e463
1 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,8 @@ class WebApi(JSONComponent):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(WebApi, self).__init__("Web", depend=["SessionProxy"])
|
super(WebApi, self).__init__("Web", depend=["SessionProxy"])
|
||||||
self.host_list = ConfigManager("hostlist.conf.1.2", DEFAULT_HOSTS)
|
self.host_list = ConfigManager("hostlist.conf.1.2", DEFAULT_HOSTS)
|
||||||
|
if not os.path.isfile(self.host_list.config_file):
|
||||||
|
self.host_list.save()
|
||||||
self.core_config = CoreConfig()
|
self.core_config = CoreConfig()
|
||||||
self.event_queue = EventQueue()
|
self.event_queue = EventQueue()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue