This commit is contained in:
Cayo Puigdefabregas 2024-09-03 16:41:27 +02:00
parent 247ba5bd15
commit 71d9e5481c
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ def index(uuid, snap):
matches = search(uuid, limit=1)
if matches.size() > 0:
return
except xapian.DatabaseNotFoundError:
except (xapian.DatabaseNotFoundError, xapian.DatabaseOpeningError):
pass
database = xapian.WritableDatabase("db", xapian.DB_CREATE_OR_OPEN)

View File

@ -1,4 +1,4 @@
rm db/*
./manage.py migrate
./manage.py add_user user@example.org 1234
./manage.py up_snapshots example/snapshots/ user@example.org
python3 manage.py migrate
python3 manage.py add_user user@example.org 1234
python3 manage.py up_snapshots example/snapshots/ user@example.org