Fix event cleanup debug logging crash (#15293)

This commit is contained in:
Josh Hawkins 2024-12-01 12:37:45 -06:00 committed by GitHub
parent 4a5fe4138e
commit a1fa9decad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ class EventCleanup(threading.Thread):
.namedtuples() .namedtuples()
.iterator() .iterator()
) )
logger.debug(f"{len(expired_events)} events can be expired") logger.debug(f"{len(list(expired_events))} events can be expired")
# delete the media from disk # delete the media from disk
for expired in expired_events: for expired in expired_events:
media_name = f"{expired.camera}-{expired.id}" media_name = f"{expired.camera}-{expired.id}"