reactivate actions (#682)

* reactivate other actions

* black

* codeql 2

* black only

* remove mock event loop

* do not follow grpc
This commit is contained in:
calle
2022-06-27 01:11:35 +02:00
committed by GitHub
parent f6da260464
commit e7dd3ec64f
9 changed files with 28 additions and 27 deletions
+2 -2
View File
@@ -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,