Skip to content

Commit 63be2e5

Browse files
committed
Fix DB manager to work with SpatiaLite < 4.2
1 parent b952f0f commit 63be2e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/db_manager/db_plugins/spatialite/connector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def _checkGeopackageTables(self):
108108
result = self._execute(None, sql).fetchone()[0] == 1
109109
except ConnectionError:
110110
result = False
111+
except Exception as e:
112+
# SpatiaLite < 4.2 does not have HasGeoPackage() function
113+
result = False
111114

112115
if result:
113116
try:

0 commit comments

Comments
 (0)