Skip to content

Commit

Permalink
fix: use get method for video_sequence_name and video_start_timestamp…
Browse files Browse the repository at this point in the history
… to handle missing keys

#86
  • Loading branch information
kevinsbarnard committed Feb 4, 2025
1 parent d8d8186 commit a9703e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vars_gridview/lib/image_mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ def __init__(
timecode = video_data.get("index_timecode", None)

# Video sequence data
video_sequence_name = video_data["video_sequence_name"]
video_sequence_name = video_data.get("video_sequence_name", None)

# Video data
video_start_timestamp = video_data["video_start_timestamp"]
video_start_timestamp = video_data.get("video_start_timestamp", None)

# ------------------

Expand Down

0 comments on commit a9703e5

Please sign in to comment.