bolkedebruin commented on code in PR #28777:
URL: https://github.com/apache/airflow/pull/28777#discussion_r1065536450
##########
airflow/utils/json.py:
##########
@@ -113,5 +113,20 @@ def orm_object_hook(dct: dict) -> object:
return deserialize(dct, False)
+class DagRunConfEncoder(WebEncoder):
+ """This encodes DagRunConf values into a web understandable format. There
is no deserializer"""
+
+ def default(self, obj):
+ try:
+ return super().default(obj)
+ except Exception:
+ if isinstance(obj, bytes):
Review Comment:
Can you be more sure of what this is so a try/except isnt required?
--
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]