forked from platypush/platypush
Don't swallow the exception if something goes wrong in a Python hook
This commit is contained in:
parent
9d0f43707a
commit
a387b84623
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue