mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 09:54:21 +01:00
fix: mypy
This commit is contained in:
parent
ce1639792a
commit
69b8dfa21f
@ -135,9 +135,10 @@ async def check_installed_extensions(app: FastAPI):
|
||||
try:
|
||||
installed = check_installed_extension(ext)
|
||||
if not installed:
|
||||
register_ext_routes(app, Extension(ext.id, True, False))
|
||||
extension = Extension.from_installable_ext(ext)
|
||||
register_ext_routes(app, extension)
|
||||
current_version = (await db_versions()).get(ext.id, 0)
|
||||
await migrate_extension_database(ext, current_version)
|
||||
await migrate_extension_database(extension, current_version)
|
||||
except:
|
||||
logger.warning(f"Failed to re-install extension: {ext.id}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user