The only expected exception here would be a Horde_Exception_Not_Found.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 7 Jul 2010 22:48:20 +0000 (18:48 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 7 Jul 2010 22:48:20 +0000 (18:48 -0400)
Any other exception should be an error.

kronolith/lib/Api.php

index 3a62929..351cbb4 100644 (file)
@@ -353,8 +353,7 @@ class Kronolith_Api extends Horde_Registry_Api
 
                         // Don't change creator/owner.
                         $event->creator = $existing_event->creator;
-                    } catch (Kronolith_Exception $e) {
-                    }
+                    } catch (Horde_Exception_NotFound $e) {}
 
                     // Save entry.
                     $saved = $event->save();