From 428f2073eb33640d7d3a68828c72e3322c00458f Mon Sep 17 00:00:00 2001 From: Peter Dolkens Date: Thu, 12 Mar 2026 15:22:31 +1100 Subject: [PATCH] fix(record): replace asyncio.SubprocessError with sp.SubprocessError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit asyncio.SubprocessError does not exist — Python's asyncio module has no such class. The correct exception is subprocess.SubprocessError, which is available via the existing `import subprocess as sp` alias already present in this file. The invalid exception reference causes the except clause to raise a NameError rather than catching the intended exception. --- frigate/util/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/util/services.py b/frigate/util/services.py index f1eedb01e..db6e37540 100644 --- a/frigate/util/services.py +++ b/frigate/util/services.py @@ -779,7 +779,7 @@ async def get_video_properties( duration = float(duration_str) if duration_str else -1.0 return True, width, height, codec, duration - except (json.JSONDecodeError, ValueError, KeyError, asyncio.SubprocessError): + except (json.JSONDecodeError, ValueError, KeyError, sp.SubprocessError): return False, 0, 0, None, -1 def probe_with_cv2(url: str) -> tuple[bool, int, int, Optional[str], float]: