Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Throw if unrecognized DB type
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Dec 2, 2015
1 parent b9acef5 commit 976cb5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/storage/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 976cb5a

Please sign in to comment.