Fix max recursion in db creation when the sql failed

This commit is contained in:
ced@b2ck.com
2007-12-14 00:07:55 +01:00
parent f9113966e1
commit 54327793a1
+3 -1
View File
@@ -49,6 +49,7 @@ class DB(Service):
sql_db.init_db(cursor)
cursor.commit()
cursor.close()
cursor = None
pooler.get_pool(db_name, demo, service.actions[db_id],
update_module=True)
if lang and lang != 'en_US':
@@ -72,7 +73,8 @@ class DB(Service):
traceback_str = e_str.getvalue()
e_str.close()
service.actions[db_id]['traceback'] = traceback_str
cursor.close()
if cursor:
cursor.close()
logger = Logger()
logger.notify_channel("web-services", LOG_INFO,