itamarst / eliot

Eliot: the logging system that tells you *why* it happened
https://eliot.readthedocs.io
Apache License 2.0
1.1k stars 66 forks source link

Some actions should propogate exceptions #426

Open thedrow opened 5 years ago

thedrow commented 5 years ago

I have a task and actions in it. I'd like to fail the task when one of the actions fail.

Currently, the context manager catches all exceptions which is prevents such behaviour.

In addition, when using a trio nursery you'd want to raise exceptions so that we will not proceed if we don't want to.

itamarst commented 5 years ago

I'm guessing #427 was a proposed solution?

Just so I understand the use case better, could you share some sample code demonstrating what you're trying to do?