From: Mikael Nordfeldth Date: Wed, 30 Oct 2013 13:56:27 +0000 (+0100) Subject: Forgot to catch no-parent-exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58717fa6c53644851a4598be16b4901bcd84d48a;p=quix0rs-gnu-social.git Forgot to catch no-parent-exception Unfortunately not a specific Exception right now, but we're getting to that. --- diff --git a/lib/util.php b/lib/util.php index 6d752936db..ee108df416 100644 --- a/lib/util.php +++ b/lib/util.php @@ -705,6 +705,8 @@ function common_find_mentions($text, $notice) common_log(LOG_WARNING, sprintf('Notice %d author profile id %d does not exist', $origNotice->id, $origNotice->profile_id)); } catch (ServerException $e) { common_log(LOG_WARNING, __METHOD__ . ' got exception: ' . $e->getMessage()); + } catch (Exception $e) { + // Probably just no parent. Should get a specific NoParentException } }