From 8de21c82ae5189e5b397caa9fcb94ff58c8685e2 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 19 Apr 2008 15:30:40 +0000 Subject: [PATCH] blocklist, fix #171 by covracer --- plugins/BlocklistImport/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/BlocklistImport/__init__.py b/plugins/BlocklistImport/__init__.py index f34d7c0bf..e11124364 100644 --- a/plugins/BlocklistImport/__init__.py +++ b/plugins/BlocklistImport/__init__.py @@ -92,6 +92,8 @@ class BlocklistImport: list_timestamp = liststats.st_mtime now_timestamp = time.time() days_update = self.config.get('load_after_days') + if days_update == None: + days_update = 0 # Seconds in a day = 86400 # Check to see if todays timestamp is older than the list plus days in config