From 80458f1897f9bbdc7daa11958ab03ecab415ff49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Feb 2008 11:34:07 +0100 Subject: [PATCH] Close sursor before installing modules Fix install partner module by command line --- trytond/trytond.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/trytond.py b/trytond/trytond.py index 7c8fe05268..f67dccaa26 100644 --- a/trytond/trytond.py +++ b/trytond/trytond.py @@ -119,11 +119,10 @@ class TrytonServer(object): cursor.execute('SELECT code FROM ir_lang ' \ 'WHERE translatable = True') lang = [x[0] for x in cursor.fetchall()] + cursor.close() pooler.get_db_and_pool(db_name, update_module=bool(CONFIG['init'] or CONFIG['update']), lang=lang) - if cursor: - cursor.close() if CONFIG["stop_after_init"]: sys.exit(0)