uranusjr commented on code in PR #69401:
URL: https://github.com/apache/airflow/pull/69401#discussion_r3526326143
##########
airflow-core/src/airflow/timetables/events.py:
##########
@@ -137,5 +137,5 @@ def deserialize(cls, data: dict[str, Any]) -> Timetable:
presorted=True,
description=data["description"],
)
- timetable._summary = data["_summary"]
+ timetable._summary = data.get("_summary", timetable._summary)
Review Comment:
```suggestion
with contextlib.suppress(KeyError):
timetable._summary = data["_summary"]
```
This makes the intent clearer. (Extra import may be needed)
--
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]