potiuk edited a comment on pull request #20239:
URL: https://github.com/apache/airflow/pull/20239#issuecomment-1001761604


   > Sure. I can't oversee the consequences nearly as good, so I would just 
follow your suggestion. Sensing is a nice idea, but just try/except is more 
"pythonic" (EAFP), isn't it? I would go for that later.
   
   Both would work, I guess, but I think checking for attr is more explicit 
IMHO and better expresses the intent. Also same exception can be thrown if you 
happen to pass another parameter which is unexpected which might hide another 
error/typo


-- 
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]


Reply via email to