From 4678546d3372d77b02c90f8335632fdd517f69fc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 16 Jan 2016 21:19:34 +0100 Subject: [PATCH] We want exceptions to be noticable in activityhandlerplugin --- lib/activityhandlerplugin.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/activityhandlerplugin.php b/lib/activityhandlerplugin.php index cb8a6b9bc9..b826a705ac 100644 --- a/lib/activityhandlerplugin.php +++ b/lib/activityhandlerplugin.php @@ -325,11 +325,7 @@ abstract class ActivityHandlerPlugin extends Plugin return true; } - try { - $object = $this->activityObjectFromNotice($notice); - } catch (NoResultException $e) { - $object = null; // because getKV returns null on failure - } + $object = $this->activityObjectFromNotice($notice); return false; } -- 2.39.5