mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-16 13:10:15 +02:00
chore: code check
This commit is contained in:
parent
7f73da1f22
commit
da8fba8a9b
3 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue