$parent = $notice->getParent();
$orig_profile = $parent->getProfile();
$nicknames = sprintf('%1$s => %2$s', $profile->nickname, $orig_profile->nickname);
- } catch (Exception $e) {
+ } catch (NoParentNoticeException $e) {
$nicknames = $profile->nickname;
}