From 0ed3c84461777750756368b32c4e4b85ed0a4113 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 14 Apr 2019 00:59:25 +0200 Subject: [PATCH] Log unhandled case --- webhook/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webhook/views.py b/webhook/views.py index cf1b0950..842f55b5 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -103,5 +103,7 @@ def handle_invoice_webhook(request): ["%s=%s" % (k, v) for (k, v) in invoice.__dict__.items()]), } send_plain_email_task.delay(email_to_admin_data) + else: + logger.error("Unhandled event : " + event.type) return HttpResponse(status=200) \ No newline at end of file