mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
Fix Sqlite FTS5 compatibility check
As per https://github.com/wagtail/wagtail/issues/7798#issuecomment-1021544265 - the direct query against the sqlite3 library will fail with sqlite3.OperationalError, not django.db.OperationalError.
This commit is contained in:
parent
5258f2899b
commit
952e681fe6
@ -14,7 +14,7 @@ def fts5_available():
|
||||
tmp_db = sqlite3.connect(':memory:')
|
||||
try:
|
||||
tmp_db.execute('CREATE VIRTUAL TABLE fts5test USING fts5 (data);')
|
||||
except OperationalError:
|
||||
except sqlite3.OperationalError:
|
||||
return False
|
||||
finally:
|
||||
tmp_db.close()
|
||||
|
Loading…
Reference in New Issue
Block a user