Add check if ir.cron is in the pool for issue775

This commit is contained in:
Cédric Krier committed 2009-02-11 19:23:36 +01:00
1 parent 42c7e522f5
commit 418682c9f5
1 file changed
+2
+2
View File
@@ -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,