uranusjr commented on a change in pull request #16765:
URL: https://github.com/apache/airflow/pull/16765#discussion_r662652387



##########
File path: airflow/models/baseoperator.py
##########
@@ -590,10 +590,16 @@ def __init__(
             if isinstance(max_retry_delay, timedelta):
                 self.max_retry_delay = max_retry_delay
             else:
-                self.log.debug("Max_retry_delay isn't timedelta object, 
assuming secs")
+                self.log.debug("max_retry_delay isn't timedelta object, 
assuming secs")
                 self.max_retry_delay = timedelta(seconds=max_retry_delay)
 
         self.params = params or {}  # Available in templates!
+        if priority_weight:
+            if not isinstance(priority_weight, int):

Review comment:
       ```suggestion
           if priority_weight is not None and not isinstance(priority_weight, 
int):
   ```
   
   ?




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