diff --git a/pubspace.py b/pubspace.py index 98e31d9..d21131b 100644 --- a/pubspace.py +++ b/pubspace.py @@ -37,7 +37,10 @@ mastodon.stream_hashtag("pubspace", PubspaceListener(), run_async=True) @app.get("/") 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")