jolin1337 commented on code in PR #61777:
URL: https://github.com/apache/airflow/pull/61777#discussion_r2797745077
##########
providers/common/io/src/airflow/providers/common/io/xcom/backend.py:
##########
@@ -171,8 +174,9 @@ def deserialize_value(result) -> Any:
return data
try:
with path.open(mode="rb", compression="infer") as f:
- return json.load(f, cls=XComDecoder)
- except (FileNotFoundError, TypeError, ValueError):
+ data = f.read()
+ return json.loads(data, cls=XComDecoder)
+ except (FileNotFoundError, TypeError, ValueError,
json.decoder.JSONDecodeError):
Review Comment:
Yes this is intentional
--
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]