|
|
@@ -119,8 +119,9 @@ class NilmDB(object): |
|
|
|
self.con = sqlite3.connect(sqlfilename, check_same_thread = True) |
|
|
|
try: |
|
|
|
self._sql_schema_update() |
|
|
|
finally: # pragma: no cover |
|
|
|
except Exception: # pragma: no cover |
|
|
|
self.data.close() |
|
|
|
raise |
|
|
|
|
|
|
|
# See big comment at top about the performance implications of this |
|
|
|
self.con.execute("PRAGMA synchronous=NORMAL") |
|
|
|