chore: add extra log

This commit is contained in:
Vlad Stan 2022-12-22 17:18:53 +02:00
parent 51c8e183d1
commit a2201c9d31

View File

@ -19,7 +19,8 @@ async def migrate_extension_database(ext, current_version):
try:
ext_migrations = importlib.import_module(f"{ext.module_name}.migrations")
ext_db = importlib.import_module(ext.module_name).db
except ImportError:
except ImportError as e:
logger.error(e)
raise ImportError(
f"Please make sure that the extension `{ext.code}` has a migrations file."
)