Skip to content

Commit

Permalink
Fix max instances exception for get vevent call
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil <akhil@e.email>
  • Loading branch information
akhil1508 committed Feb 26, 2023
1 parent b7bf29f commit 9f9da96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/dav/lib/CalDAV/Reminder/ReminderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ public function processReminders() :void {
continue;
}

$vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
try {
$vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
}
catch (MaxInstancesExceededException $e) {
$this->logger->debug('Recurrence with too many instances detected, skipping VEVENT', ['exception' => $e]);
continue;
}

if (!$vevent) {
$this->logger->debug('Reminder {id} does not belong to a valid event', [
'id' => $reminder['id'],
Expand Down

0 comments on commit 9f9da96

Please sign in to comment.