From c4be46e253bf19a980d383ad6012b3df520f8f77 Mon Sep 17 00:00:00 2001 From: gferraro Date: Tue, 29 Aug 2023 18:09:44 +1200 Subject: [PATCH] check for thumbnail --- processing/thermal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/processing/thermal.py b/processing/thermal.py index d6734c0..3a77541 100644 --- a/processing/thermal.py +++ b/processing/thermal.py @@ -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(