chore: update some log messages (#2710)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user