From be75aa93f212d570b135fe208b21a6b33d3c5844 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Nov 2012 19:11:01 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sysrss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysrss.py b/sysrss.py index 3b4c694..fe6fec6 100755 --- a/sysrss.py +++ b/sysrss.py @@ -84,7 +84,8 @@ class SysRSS: exit(254) for site in self.sites: - if site.interval < 1: + site.interval = int(site.interval) + if site.interval <= 0: print('Site %s does not have a positive interval and will therefore only be checked right now.' % site.name) message = site() if (message is not None) and (len(message) > 0): -- cgit v1.2.3-70-g09d2