From 59c9280d4ac473d24291f58636e342e5d1d12406 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 16 Jun 2020 00:10:07 +0200 Subject: [PATCH] [mod] add request content in error debug --- server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.py b/server.py index 474f517..ca8a2df 100644 --- a/server.py +++ b/server.py @@ -482,6 +482,12 @@ async def github(request): import traceback traceback.print_exc() + + try: + print(request.json) + except Exception(): + pass + await notify( f"Error in Webhooks: exception {e} on {hook_type} webhooks, please see logs" )