Author: johnnyg

Revision: 5730

Log:
        Fix typo and logic error.

Diff:
Modified: trunk/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/core.py    2009-09-13 14:45:23 UTC 
(rev 5729)
+++ trunk/deluge/plugins/blocklist/blocklist/core.py    2009-09-13 15:33:45 UTC 
(rev 5730)
@@ -248,7 +248,7 @@
                 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"]:

Modified: trunk/deluge/plugins/blocklist/blocklist/detect.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/detect.py  2009-09-13 14:45:23 UTC 
(rev 5729)
+++ trunk/deluge/plugins/blocklist/blocklist/detect.py  2009-09-13 15:33:45 UTC 
(rev 5730)
@@ -73,6 +73,6 @@
 
 def create_reader(format, compression=""):
     reader = READERS.get(format)
-    if compression:
+    if reader and compression:
         reader = DECOMPRESSERS.get(compression)(reader)
     return reader



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to