Fix typo and logic error.
This commit is contained in:
parent
2b46224ef1
commit
7343c5bb39
|
@ -248,7 +248,7 @@ class Core(CorePluginBase):
|
|||
log.debug("Blocklist is up-to-date!")
|
||||
self.up_to_date = True
|
||||
self.use_cache = True
|
||||
d = threads.deferToThread(update_info,
|
||||
d = threads.deferToThread(self.update_info,
|
||||
deluge.configmanager.get_config_dir("blocklist.cache"))
|
||||
f.trap(f.type)
|
||||
elif self.failed_attempts < self.config["try_times"]:
|
||||
|
|
|
@ -73,6 +73,6 @@ def detect_format(filename, compression=""):
|
|||
|
||||
def create_reader(format, compression=""):
|
||||
reader = READERS.get(format)
|
||||
if compression:
|
||||
if reader and compression:
|
||||
reader = DECOMPRESSERS.get(compression)(reader)
|
||||
return reader
|
||||
|
|
Loading…
Reference in New Issue