kaxil commented on a change in pull request #6715: [AIRFLOW-5945] Make inbuilt 
OperatorLinks work when using Serialization
URL: https://github.com/apache/airflow/pull/6715#discussion_r353109971
 
 

 ##########
 File path: airflow/serialization/base_serialization.py
 ##########
 @@ -216,7 +216,11 @@ def _deserialize(cls, encoded_var):  # pylint: 
disable=too-many-return-statement
             return [cls._deserialize(v) for v in encoded_var]
 
         assert isinstance(encoded_var, dict)
-        var = encoded_var[Encoding.VAR]
+        try:
+            var = encoded_var[Encoding.VAR]
+        except KeyError as e:
+            logging.info("encoded_var: %s", encoded_var)
 
 Review comment:
   Yes but I kept it intentionally as it would be useful to log what key was 
not found.
   
   Happy to remove it if you think

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to