mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
only return stderr if return code is not 0
This commit is contained in:
parent
76bbd838f7
commit
ae9133b175
@ -1222,10 +1222,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 "",
|
||||
}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user