From: Mikael Nordfeldth Date: Sat, 16 Jan 2016 20:19:34 +0000 (+0100) Subject: We want exceptions to be noticable in activityhandlerplugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4678546d3372d77b02c90f8335632fdd517f69fc;p=quix0rs-gnu-social.git We want exceptions to be noticable in activityhandlerplugin --- 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; }