mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 20:36:16 +02:00
chore: add extra log
This commit is contained in:
@@ -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."
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user