Skip to content

Commit

Permalink
Fix DB manager to work with SpatiaLite < 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 23, 2016
1 parent b952f0f commit 63be2e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/db_manager/db_plugins/spatialite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def _checkGeopackageTables(self):
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:
Expand Down

0 comments on commit 63be2e5

Please sign in to comment.