Throw if unrecognized DB type

pull/412/head
Erik Johnston 2015-12-02 13:50:43 +00:00
parent b9acef5301
commit 976cb5aaa8
1 changed files with 4 additions and 1 deletions

View File

@ -419,5 +419,8 @@ def _parse_query(database_engine, search_term):
if isinstance(database_engine, PostgresEngine):
return " & ".join(result + ":*" for result in results)
else:
elif isinstance(database_engine, Sqlite3Engine):
return " & ".join(result + "*" for result in results)
else:
# This should be unreachable.
raise Exception("Unrecognized database engine")