mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 07:08:30 +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
@ -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…
x
Reference in New Issue
Block a user