chore: add extra log
This commit is contained in:
parent
51c8e183d1
commit
a2201c9d31
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ async def migrate_extension_database(ext, current_version):
|
||||||
try:
|
try:
|
||||||
ext_migrations = importlib.import_module(f"{ext.module_name}.migrations")
|
ext_migrations = importlib.import_module(f"{ext.module_name}.migrations")
|
||||||
ext_db = importlib.import_module(ext.module_name).db
|
ext_db = importlib.import_module(ext.module_name).db
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
|
logger.error(e)
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
f"Please make sure that the extension `{ext.code}` has a migrations file."
|
f"Please make sure that the extension `{ext.code}` has a migrations file."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue