Skip to content

Commit

Permalink
bugfix: let failures during an upgrade crash
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Jan 15, 2025
1 parent 7ba42d9 commit 7d86f62
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions aleph/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
hash_plaintext_api_keys as _hash_plaintext_api_keys,
)
from aleph.index.entities import iter_proxies
from aleph.index.util import AlephOperationalException
from aleph.logic.collections import create_collection, update_collection
from aleph.logic.collections import delete_collection, reindex_collection
from aleph.logic.collections import upgrade_collections, reingest_collection
Expand Down Expand Up @@ -527,11 +526,11 @@ def publish(foreign_id):

@cli.command()
def upgrade():
"""Create or upgrade the search index and database."""
try:
upgrade_system()
except AlephOperationalException:
log.exception("Failed to upgrade.")
"""Create or upgrade the search index and database.
:raises AlephOperationalException:
"""
upgrade_system()


@cli.command()
Expand Down

0 comments on commit 7d86f62

Please sign in to comment.