From abc40f258173ccd5dd7221294257ce30908f6d7e Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 2 Jan 2023 16:31:59 -0700 Subject: [PATCH] only return stderr if return code is not 0 (#4863) --- frigate/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 99b981b2f..531bf57c0 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1250,10 +1250,10 @@ def vainfo(): { "return_code": vainfo.returncode, "stderr": vainfo.stderr.decode("unicode_escape").strip() - if vainfo.stderr.decode() + if vainfo.returncode != 0 else "", "stdout": vainfo.stdout.decode("unicode_escape").strip() - if vainfo.stdout.decode() + if vainfo.returncode == 0 else "", } )