try:
    res = db.query(queryString)
except SQLiteError as e:
    print(repr(e))
for tb in traceback.format_tb(sys.exc_info()[2]):
    pass
How can I get better error information with try/catch in Python