catch exceptions in migrations for extensions (#1987)

This commit is contained in:
callebtc 2023-10-04 12:09:54 +02:00 committed by GitHub
parent c5192146af
commit 36445732d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,10 @@ async def migrate_databases():
for ext in get_valid_extensions():
current_version = current_versions.get(ext.code, 0)
await migrate_extension_database(ext, current_version)
try:
await migrate_extension_database(ext, current_version)
except Exception as e:
logger.exception(f"Error migrating extension {ext.code}: {e}")
logger.info("✔️ All migrations done.")