From afe3b5dd3de97720581b1ed259dbd887179532f2 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 10 Aug 2023 04:49:11 -0600 Subject: [PATCH] Fix linter error (#7428) --- frigate/plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/plus.py b/frigate/plus.py index b219e02a2..032b4a6bd 100644 --- a/frigate/plus.py +++ b/frigate/plus.py @@ -27,7 +27,7 @@ def get_jpg_bytes(image: ndarray, max_dim: int, quality: int) -> bytes: ret, jpg = cv2.imencode(".jpg", original, [int(cv2.IMWRITE_JPEG_QUALITY), quality]) jpg_bytes = jpg.tobytes() - return jpg_bytes if type(jpg_bytes) is bytes else b"" + return jpg_bytes if isinstance(jpg_bytes, bytes) else b"" class PlusApi: