From: Thorsten Date: Sun, 7 Oct 2018 19:14:50 +0000 (+0200) Subject: workaround for configobj storing literal "None" X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=0c3c530caf174831e37f070488e86aabe5f3c9d5;p=urlbot-v3.git workaround for configobj storing literal "None" --- diff --git a/distbot/plugins/feeds.py b/distbot/plugins/feeds.py index 4d5e5e7..91b720d 100644 --- a/distbot/plugins/feeds.py +++ b/distbot/plugins/feeds.py @@ -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')