mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Formatting
This commit is contained in:
parent
bd4b5dbb7d
commit
a6b3e90a5e
@ -183,12 +183,15 @@ def send_to_plus(id):
|
||||
message = f"Event {id} not found"
|
||||
logger.error(message)
|
||||
return make_response(jsonify({"success": False, "message": message}), 404)
|
||||
|
||||
|
||||
if event.end_time is None:
|
||||
logger.error(f"Unable to load clean png for in-progress event: {event.id}")
|
||||
return make_response(
|
||||
jsonify(
|
||||
{"success": False, "message": "Unable to load clean png for in-progress event"}
|
||||
{
|
||||
"success": False,
|
||||
"message": "Unable to load clean png for in-progress event",
|
||||
}
|
||||
),
|
||||
400,
|
||||
)
|
||||
@ -210,7 +213,7 @@ def send_to_plus(id):
|
||||
),
|
||||
400,
|
||||
)
|
||||
|
||||
|
||||
if image is None or image.size == 0:
|
||||
logger.error(f"Unable to load clean png for event: {event.id}")
|
||||
return make_response(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user