[GRASS-SVN] r71576 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 22 09:44:14 PDT 2017
Author: huhabla
Date: 2017-10-22 09:44:14 -0700 (Sun, 22 Oct 2017)
New Revision: 71576
Modified:
grass/trunk/lib/python/temporal/core.py
Log:
temporal framework: Better sqlite3 import handling
Modified: grass/trunk/lib/python/temporal/core.py
===================================================================
--- grass/trunk/lib/python/temporal/core.py 2017-10-21 15:27:44 UTC (rev 71575)
+++ grass/trunk/lib/python/temporal/core.py 2017-10-22 16:44:14 UTC (rev 71576)
@@ -609,6 +609,12 @@
driver_string = ciface.get_driver_name()
database_string = ciface.get_database_name()
tgis_backend = driver_string
+ try:
+ import sqlite3
+ except ImportError:
+ msgr.error("Unable to locate the sqlite SQL Python interface"
+ " module sqlite3.")
+ raise
dbmi = sqlite3
tgis_database_string = database_string
More information about the grass-commit
mailing list