Fix max instances exception for get vevent call

Signed-off-by: Akhil <akhil@e.email>
pull/36845/head
Akhil 2023-02-24 11:02:24 +07:00 committed by Akhil
parent b7bf29fd8c
commit 9f9da964f6
No known key found for this signature in database
GPG Key ID: A8AB680DBB7F3D45
1 changed files with 8 additions and 1 deletions

@ -147,7 +147,14 @@ class ReminderService {
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'],