From 7708c497abdc2c69defc55b102cc3ae571c9cfc4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 11 Nov 2010 15:03:28 +0100 Subject: [PATCH] fix when interval is a string instead of an integer --- weboob/backends/aum/optim/priority_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/backends/aum/optim/priority_connection.py b/weboob/backends/aum/optim/priority_connection.py index 26677e7d..703aeeac 100644 --- a/weboob/backends/aum/optim/priority_connection.py +++ b/weboob/backends/aum/optim/priority_connection.py @@ -61,8 +61,8 @@ class PriorityConnection(Optimization): if self.config is None: return False - self.check_cron = self.sched.repeat(self.config['interval'], self.check_godchilds) - self.activity_cron = self.sched.repeat(300, self.activity_fakes) + self.check_cron = self.sched.repeat(int(self.config['interval']), self.check_godchilds) + self.activity_cron = self.sched.repeat(600, self.activity_fakes) return True def stop(self):