Don't explode so much while testing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2021-06-16 11:32:14 +02:00
parent 8776b16c4a
commit a1eb570b67
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -37,7 +37,10 @@ mastodon.stream_hashtag("pubspace", PubspaceListener(), run_async=True)
@app.get("/") @app.get("/")
async def home(request: Request): async def home(request: Request):
app.state.log.info(await request.json()) try:
app.state.log.info(await request.json())
except Exception:
return {}
@app.get("/healthz") @app.get("/healthz")