mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +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)
|
||||
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'):
|
||||
self.loadlist(fetch=self.config.get('load_after_days'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue