Commit 3ae7f971 authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: log error message if failed to import sqlite3 package

parent 81b1b99f
......@@ -51,10 +51,12 @@ import platform
try:
import sqlite3
except ImportError:
except ImportError, ex:
sys.stderr.write('Failed to import sqlite3: %s\n' % ex)
try:
import pysqlite2.dbapi2 as sqlite3
except ImportError:
except ImportError, ex:
sys.stderr.write('Failed to import pysqlite2.dbapi2: %s\n' % ex)
sqlite3 = None
_column_types = {'time': 'real'}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment