Is there a way to access the exception that was ra...
# ask-community
m
Is there a way to access the exception that was raised from within an op in the context of a run failure sensor ? Using the failure sensor test example I can't seem to access it from any of the objects created in the test. The goal is to access the raised exception trace and send that in a slack message within the sensor.
o
hi @martin o leary! I think this should cover your use case: https://github.com/dagster-io/dagster/discussions/8428
m
Thank you @owen! I thought I had all bases covered with the slack and the linen archive 🙂
I actually needed to change the line appending the errors the this:
Copy code
errors.append(e.dagster_event.event_specific_data.error_display_string)
This was what got me the actual stack trace from my user code exception.