Skip to content

Commit

Permalink
Fix typo in error stack trace formatting for clearer output (apache#4…
Browse files Browse the repository at this point in the history
…2017)

* Use format_exc

* Moving back to format_exception
  • Loading branch information
aboitreaud authored Sep 23, 2024
1 parent 748b387 commit ffff0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/openlineage/plugins/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def fail_task(
if isinstance(error, BaseException) and error.__traceback__:
import traceback

stack_trace = "\\n".join(traceback.format_exception(type(error), error, error.__traceback__))
stack_trace = "".join(traceback.format_exception(type(error), error, error.__traceback__))
run_facets["errorMessage"] = error_message_run.ErrorMessageRunFacet(
message=str(error), programmingLanguage="python", stackTrace=stack_trace
)
Expand Down

0 comments on commit ffff0e8

Please sign in to comment.