You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/31 18:13:57 UTC

[GitHub] [airflow] chenglongyan commented on pull request #26040: Fix TaskInstance.task not defined before handle_failure

chenglongyan commented on PR #26040:
URL: https://github.com/apache/airflow/pull/26040#issuecomment-1233261562

   > Since `task` is really only accessed once in `handle_failure`, would it be more minimal to use `getattr` there instead?
   
   I think you're right,  but is it better to use **hasattr**?, because **getattr** also throws an exception.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org