Fix DB manager to work with SpatiaLite < 4.2

This commit is contained in:
Martin Dobias 2016-02-23 16:38:01 +08:00
parent b952f0f177
commit 63be2e5303

View File

@ -108,6 +108,9 @@ class SpatiaLiteDBConnector(DBConnector):
result = self._execute(None, sql).fetchone()[0] == 1
except ConnectionError:
result = False
except Exception as e:
# SpatiaLite < 4.2 does not have HasGeoPackage() function
result = False
if result:
try: