chore: code check

This commit is contained in:
Vlad Stan
2026-05-25 15:50:46 +03:00
parent 7f73da1f22
commit da8fba8a9b
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -447,6 +447,10 @@ def register_ext_routes(app: FastAPI, ext: Extension) -> None:
try:
module = importlib.import_module(module_name)
except Exception:
logger.warning(
f"Could not import module {module_name} for wasm extension "
f"{ext.code}."
)
continue
register_wasm_ext_routes = getattr(
module, "register_wasm_ext_routes", None
+2 -2
View File
@@ -38,10 +38,10 @@ async def migrate_extension_database(
await run_migration(ext_conn, ext_migrations, ext.id, current_version)
def get_extension_type(ext_id: str, ext_dir: str | None = None) -> str | None:
def get_extension_type(ext_id: str, ext_dir: Path | None = None) -> str | None:
candidate_dirs = []
if ext_dir:
candidate_dirs.append(Path(ext_dir))
candidate_dirs.append(ext_dir)
candidate_dirs.extend(
[
Path(settings.lnbits_extensions_path, "extensions", ext_id),
File diff suppressed because one or more lines are too long