reactivate actions (#682)
* reactivate other actions * black * codeql 2 * black only * remove mock event loop * do not follow grpc
This commit is contained in:
+2
-2
@@ -62,12 +62,12 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
|
||||
):
|
||||
# Only the browser sends "text/html" request
|
||||
# not fail proof, but everything else get's a JSON response
|
||||
|
||||
|
||||
if "text/html" in request.headers["accept"]:
|
||||
return template_renderer().TemplateResponse(
|
||||
"error.html",
|
||||
{"request": request, "err": f"{exc.errors()} is not a valid UUID."},
|
||||
)
|
||||
)
|
||||
|
||||
return JSONResponse(
|
||||
status_code=HTTPStatus.NO_CONTENT,
|
||||
|
||||
Reference in New Issue
Block a user