eumiro commented on code in PR #33849:
URL: https://github.com/apache/airflow/pull/33849#discussion_r1310706501


##########
airflow/serialization/serialized_objects.py:
##########
@@ -825,9 +822,10 @@ def serialize_mapped_operator(cls, op: MappedOperator) -> 
dict[str, Any]:
             try:
                 v = serialized_partial[k]
             except KeyError:
-                continue
-            if v == default:
-                del serialized_partial[k]
+                pass
+            else:
+                if v == default:
+                    del serialized_partial[k]

Review Comment:
   It keeps the `v` variable in the successful `try/else` line. But I'll revert 
it here.



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