mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
only return stderr if return code is not 0 (#4863)
This commit is contained in:
parent
dc738e9be7
commit
abc40f2581
@ -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 "",
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user