Commit fcbb6c23 authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: continue running even if sqlite3 is not available

--HG--
extra : transplant_source : FR%BBm%B8%83%E0%D4%A1%9B%C3%BE%C8%A7%979YW%2B%03
parent 91e82f9b
......@@ -515,10 +515,11 @@ def main():
if options.db:
if sqlite3:
options.db = os.path.abspath(options.db)
print 'Using the database: %s' % options.db
else:
sys.exit('Cannot access the database %r: no sqlite3 module found.' % (options.db, ))
options.db = os.path.abspath(options.db)
sys.stderr.write('Cannot access the database %r: no sqlite3 module found.\n' % (options.db, ))
options.db = False
if options.db:
db = sqlite3.connect(options.db)
......
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