Skip to content

Commit

Permalink
Catch NotFound exceptions when deleting calendars.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 30, 2013
1 parent 23eea77 commit b2dca89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kronolith/lib/Driver/Sql.php
Expand Up @@ -754,11 +754,13 @@ public function delete($calendar)
}
}
foreach ($uids as $uid) {
$event = $this->getByUID($uid, array($calendar));
try {
$event = $this->getByUID($uid, array($calendar));
$this->deleteEvent($event->id);
} catch (Kronolith_Exception $e) {
Horde::logMessage($e, 'ERR');
} catch (Horde_Exception_NotFound $e) {
/* If deleting events with exceptions, those exceptions are
* returned by the listEvents() call, but they may have been
* deleted already with the base event. */
}
}

Expand Down

0 comments on commit b2dca89

Please sign in to comment.