From f3f9b36e07ba81ffa4744ca5e9a4a22634631a31 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 30 Jun 2023 07:06:38 -0600 Subject: [PATCH] Fix bad check on np.array (#6968) --- frigate/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index 9c55d68c4..e47e6efc2 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1118,7 +1118,7 @@ def latest_frame(camera_name): height = int(request.args.get("h", str(frame.shape[0]))) width = int(height * frame.shape[1] / frame.shape[0]) - if not frame: + if frame is None: return "Unable to get valid frame from {}".format(camera_name), 500 if height < 1 or width < 1: