Don't swallow the exception if something goes wrong in a Python hook

This commit is contained in:
Fabio Manganiello 2020-04-30 23:55:28 +02:00
parent 9d0f43707a
commit a387b84623

View file

@ -181,6 +181,7 @@ def hook(event_type=Event, **condition):
return Response(output=ret) return Response(output=ret)
except Exception as e: except Exception as e:
logger.exception(e)
return Response(errors=[str(e)]) return Response(errors=[str(e)])
return wrapped return wrapped