catch exceptions in migrations for extensions (#1987)
This commit is contained in:
parent
c5192146af
commit
36445732d2
1 changed files with 4 additions and 1 deletions
|
|
@ -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.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue