From a387b84623f8544a29659eb4560a6b36a8ae7cc1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 30 Apr 2020 23:55:28 +0200 Subject: [PATCH] Don't swallow the exception if something goes wrong in a Python hook --- platypush/event/hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/event/hook.py b/platypush/event/hook.py index 39d9e8e9d..65a027d05 100644 --- a/platypush/event/hook.py +++ b/platypush/event/hook.py @@ -181,6 +181,7 @@ def hook(event_type=Event, **condition): return Response(output=ret) except Exception as e: + logger.exception(e) return Response(errors=[str(e)]) return wrapped