chore: update some log messages (#2710)

This commit is contained in:
Vlad Stan
2024-09-25 11:22:00 +03:00
committed by GitHub
parent cf2aca3327
commit 04882e05a3
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ async def migrate_extension_database(ext: Extension, current_version):
ext_db = importlib.import_module(ext.module_name).db
except ImportError as exc:
logger.error(exc)
raise ImportError(
f"Please make sure that the extension `{ext.code}` has a migrations file."
) from exc
raise ImportError(f"Cannot import module for extension '{ext.code}'.") from exc
async with ext_db.connect() as ext_conn:
await run_migration(ext_conn, ext_migrations, ext.code, current_version)