mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Fix crash caused by no events occurring in retention interval
This commit is contained in:
@@ -69,6 +69,9 @@ class MissingEventChecker:
|
||||
limit=chunk_size,
|
||||
)
|
||||
|
||||
if not events_chunk:
|
||||
break # There were no events to backup
|
||||
|
||||
start_time = events_chunk[-1].end
|
||||
unifi_events = {event.id: event for event in events_chunk}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user