Ensure sqlite connection is set when initializing the database

issue5906
review26721002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-09-24 19:54:13 +02:00
1 parent 972a1b6c91
commit e2afba1e9a
1 file changed
+1 -1
+1 -1
View File
@@ -303,7 +303,7 @@ class Database(DatabaseInterface):
def init(self):
from trytond.modules import get_module_info
with self._conn as conn:
with self.get_connection() as conn:
cursor = conn.cursor()
sql_file = os.path.join(os.path.dirname(__file__), 'init.sql')
with open(sql_file) as fp: