mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-07 11:28:19 +02:00
extension loader: do not panic! (#1945)
This commit is contained in:
parent
1ee2d53069
commit
b8922a7cd7
@ -260,10 +260,7 @@ def register_routes(app: FastAPI) -> None:
|
||||
try:
|
||||
register_ext_routes(app, ext)
|
||||
except Exception as e:
|
||||
logger.error(str(e))
|
||||
raise ImportError(
|
||||
f"Please make sure that the extension `{ext.code}` follows conventions."
|
||||
)
|
||||
logger.error(f"Could not load extension `{ext.code}`: {str(e)}")
|
||||
|
||||
|
||||
def register_new_ext_routes(app: FastAPI) -> Callable:
|
||||
|
Loading…
x
Reference in New Issue
Block a user