Skip to content

Commit

Permalink
Catch but log exceptions from invalid events.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 2, 2014
1 parent b815010 commit 58c676e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kronolith/lib/Driver/Horde.php
Expand Up @@ -94,7 +94,11 @@ protected function _listEvents(Horde_Date $startDate = null,

$results = array();
foreach ($eventsList as $eventsListItem) {
$event = new Kronolith_Event_Horde($this, $eventsListItem);
try {
$event = new Kronolith_Event_Horde($this, $eventsListItem);
} catch (Kronolith_Exception $e) {
Horde::log($e, 'NOTICE');
}

// Ignore events out of the period.
$recurs = $event->recurs();
Expand Down

0 comments on commit 58c676e

Please sign in to comment.