mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 21:44:13 +03:00
catch failed image embedding in triggers
This commit is contained in:
parent
2a9c028f55
commit
7c3e093fcc
@ -1753,7 +1753,7 @@ def create_trigger_embedding(
|
||||
body.data, (base64.b64encode(thumbnail).decode("ASCII"))
|
||||
)
|
||||
|
||||
if embedding is None:
|
||||
if not embedding:
|
||||
return JSONResponse(
|
||||
content={
|
||||
"success": False,
|
||||
@ -1888,7 +1888,7 @@ def update_trigger_embedding(
|
||||
body.data, (base64.b64encode(thumbnail).decode("ASCII"))
|
||||
)
|
||||
|
||||
if embedding is None:
|
||||
if not embedding:
|
||||
return JSONResponse(
|
||||
content={
|
||||
"success": False,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user