This is an automated email from the ASF dual-hosted git repository.

mobuchowski pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ffff0e8b33 Fix typo in error stack trace formatting for clearer output 
(#42017)
ffff0e8b33 is described below

commit ffff0e8b338855b44d89981f89109f50dbd0d279
Author: Adrien Boitreaud <[email protected]>
AuthorDate: Mon Sep 23 16:27:54 2024 +0200

    Fix typo in error stack trace formatting for clearer output (#42017)
    
    * Use format_exc
    
    * Moving back to format_exception
---
 airflow/providers/openlineage/plugins/adapter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/providers/openlineage/plugins/adapter.py 
b/airflow/providers/openlineage/plugins/adapter.py
index 8cd6e6c605..51eb649adb 100644
--- a/airflow/providers/openlineage/plugins/adapter.py
+++ b/airflow/providers/openlineage/plugins/adapter.py
@@ -311,7 +311,7 @@ class OpenLineageAdapter(LoggingMixin):
             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
             )

Reply via email to