]> git.aero2k.de Git - urlbot-v3.git/commitdiff
workaround for configobj storing literal "None"
authorThorsten <mail@aero2k.de>
Sun, 7 Oct 2018 19:14:50 +0000 (21:14 +0200)
committerThorsten <mail@aero2k.de>
Sun, 7 Oct 2018 19:14:50 +0000 (21:14 +0200)
distbot/plugins/feeds.py

index 4d5e5e71c769b3605b1566ce63538de31209b9fd..91b720d0100325e77b04ecd70cd9386dd5d33720 100644 (file)
@@ -64,7 +64,8 @@ class DSAWatcher(Worker):
     def crawl(self):
         out = []
         last_dsa = conf_get('plugins.dsa-watcher.last_dsa')
-        if last_dsa:
+        # configobj, why u no work?
+        if last_dsa and last_dsa != "None":
             last_dsa = int(last_dsa)
         last_dsa_date = conf_get('plugins.dsa-watcher.last_dsa_date')