mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-08 06:25:27 +03:00
Cleanup
This commit is contained in:
parent
209d04df28
commit
4953975f5e
@ -199,9 +199,7 @@ Each line represents a detection state, not necessarily unique individuals. The
|
|||||||
try:
|
try:
|
||||||
raw = json.loads(clean_json)
|
raw = json.loads(clean_json)
|
||||||
except json.JSONDecodeError as je:
|
except json.JSONDecodeError as je:
|
||||||
logger.error(
|
logger.error("Failed to parse review description JSON: %s", je)
|
||||||
"Failed to parse review description JSON: %s", je
|
|
||||||
)
|
|
||||||
return None
|
return None
|
||||||
# observations is required on the model; fill an empty default
|
# observations is required on the model; fill an empty default
|
||||||
# if the response omitted it so attribute access stays safe.
|
# if the response omitted it so attribute access stays safe.
|
||||||
@ -226,9 +224,7 @@ Each line represents a detection state, not necessarily unique individuals. The
|
|||||||
metadata.time = review_data["start"]
|
metadata.time = review_data["start"]
|
||||||
return metadata
|
return metadata
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(
|
logger.error(f"Failed to post-process review metadata: {e}")
|
||||||
f"Failed to post-process review metadata: {e}"
|
|
||||||
)
|
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user