mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
Fix loading of BlocklistImport if the config key 'load_after_days' is
not found.
This commit is contained in:
parent
a7eb6ae0f7
commit
2a72d56055
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ class BlocklistImport:
|
||||||
global_defaults=False)
|
global_defaults=False)
|
||||||
self.config.load()
|
self.config.load()
|
||||||
|
|
||||||
|
try:
|
||||||
|
load_after_days = self.config.get("load_after_days")
|
||||||
|
except:
|
||||||
|
self.config.set("load_after_days", -1)
|
||||||
|
|
||||||
if self.config.has_key('url'):
|
if self.config.has_key('url'):
|
||||||
self.loadlist(fetch=self.config.get('load_after_days'))
|
self.loadlist(fetch=self.config.get('load_after_days'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue