mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-10 08:38:27 -05:00
Throw if unrecognized DB type
This commit is contained in:
parent
b9acef5301
commit
976cb5aaa8
@ -419,5 +419,8 @@ def _parse_query(database_engine, search_term):
|
|||||||
|
|
||||||
if isinstance(database_engine, PostgresEngine):
|
if isinstance(database_engine, PostgresEngine):
|
||||||
return " & ".join(result + ":*" for result in results)
|
return " & ".join(result + ":*" for result in results)
|
||||||
else:
|
elif isinstance(database_engine, Sqlite3Engine):
|
||||||
return " & ".join(result + "*" for result in results)
|
return " & ".join(result + "*" for result in results)
|
||||||
|
else:
|
||||||
|
# This should be unreachable.
|
||||||
|
raise Exception("Unrecognized database engine")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user