Skip to content

Commit

Permalink
add event collapse None check
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Sep 18, 2024
1 parent 55ae6df commit 0fb2d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lifeblood_viewer/connection_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,12 @@ def _check_tasks(self):
first_time_receiving_events_for_this_filter = self.__last_known_event_id < 0
self.__last_known_event_id = task_events[-1].event_id
if first_time_receiving_events_for_this_filter:
collapsed_data = None
try:
collapsed_data = collapse_task_event_list(task_events)
except RuntimeError:
logger.warning("failed to collapse event list, event list malformed!")
else:
if collapsed_data is not None:
subst_event = TaskFullState(
collapsed_data.db_uid,
collapsed_data
Expand Down

0 comments on commit 0fb2d6c

Please sign in to comment.