Skip to content

Commit

Permalink
check for thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Aug 29, 2023
1 parent 68ce449 commit c4be46e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processing/thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def track(conf, recording, api, duration, retrack, logger):
)
for track in tracking_result.tracks:
if retrack:
del track["thumbnail"]
if "thumbnail" in track:
del track["thumbnail"]
api.update_track(recording, track)
else:
track["id"] = api.add_track(
Expand Down

0 comments on commit c4be46e

Please sign in to comment.