kaxil commented on code in PR #23655:
URL: https://github.com/apache/airflow/pull/23655#discussion_r872224701


##########
airflow/models/baseoperator.py:
##########
@@ -767,7 +767,13 @@ def __init__(
         self.email = email
         self.email_on_retry = email_on_retry
         self.email_on_failure = email_on_failure
+
+        if execution_timeout is not None and not isinstance(execution_timeout, 
timedelta):

Review Comment:
   Even if you have plan to allow None, the following should work:
   
   ```
   if execution_timeout and not isinstance(execution_timeout, timedelta):
   ```



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