iljau commented on issue #19168:
URL: https://github.com/apache/airflow/issues/19168#issuecomment-949869957
Work-around could be:
```python
import textwrap
from airflow.exceptions import AirflowException
from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import (
KubernetesPodOperator,
)
class CustomKubernetesPodOperator(KubernetesPodOperator):
def execute(self, context):
try:
super().execute(context)
except AirflowException as e:
msg = str(e)
short_msg = textwrap.shorten(msg, width=160)
raise AirflowException(short_msg) from None
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]