mirror of
https://github.com/mvt-project/mvt.git
synced 2026-10-01 13:39:34 +02:00
Adds recovery of sqlite db when db is opened (#516)
Co-authored-by: Donncha Ó Cearbhaill <donncha.ocearbhaill@amnesty.org>
This commit is contained in:
1 parent
477f9a7f6b
commit
7303bc06e5
1 file changed
+5
-1
@@ -49,7 +49,11 @@ class IOSExtraction(MVTModule):
|
||||
"""
|
||||
# TODO: Find a better solution.
|
||||
if not forced:
|
||||
conn = self._open_sqlite_db(file_path)
|
||||
# If the database is open, do not use immutable
|
||||
if os.path.isfile(file_path + "-shm"):
|
||||
conn = sqlite3.connect(file_path)
|
||||
else:
|
||||
conn = self._open_sqlite_db(file_path)
|
||||
cur = conn.cursor()
|
||||
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user