From 418682c9f5eefb8cb795aa061acec576faab9a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Feb 2009 19:23:36 +0100 Subject: [PATCH] Add check if ir.cron is in the pool for issue775 --- trytond/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/server.py b/trytond/server.py index 24a1f2bc27..7ba6074268 100644 --- a/trytond/server.py +++ b/trytond/server.py @@ -241,6 +241,8 @@ class TrytonServer(object): while True: for dbname in Pool.database_list(): pool = Pool(dbname) + if 'ir.cron' not in pool.object_name_list(): + continue cron_obj = pool.get('ir.cron') thread = threading.Thread( target=cron_obj.pool_jobs,