diff --git a/frigate/http.py b/frigate/http.py index 75e00b26c..b39596e9d 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -214,6 +214,9 @@ def event_snapshot(id): except: return "Event not found", 404 + if jpg_bytes is None: + return "Event not found", 404 + response = make_response(jpg_bytes) response.headers["Content-Type"] = "image/jpg" return response