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