Prechádzať zdrojové kódy

temporal framework: Better sqlite3 import handling

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71576 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 7 rokov pred
rodič
commit
7d4b4febd6
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      lib/python/temporal/core.py

+ 6 - 0
lib/python/temporal/core.py

@@ -609,6 +609,12 @@ def init(raise_fatal_error=False):
         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