From 0c3c530caf174831e37f070488e86aabe5f3c9d5 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sun, 7 Oct 2018 21:14:50 +0200 Subject: [PATCH] workaround for configobj storing literal "None" --- distbot/plugins/feeds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- 2.39.2