Fix typo and logic error.

This commit is contained in:
John Garland 2009-09-13 15:33:45 +00:00
parent 2b46224ef1
commit 7343c5bb39
2 changed files with 2 additions and 2 deletions

View File

@ -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"]:

View File

@ -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