Forgot to catch no-parent-exception

Unfortunately not a specific Exception right now, but we're getting to that.
This commit is contained in:
Mikael Nordfeldth 2013-10-30 14:56:27 +01:00
parent f75ddaa8aa
commit 58717fa6c5

View File

@ -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)); common_log(LOG_WARNING, sprintf('Notice %d author profile id %d does not exist', $origNotice->id, $origNotice->profile_id));
} catch (ServerException $e) { } catch (ServerException $e) {
common_log(LOG_WARNING, __METHOD__ . ' got exception: ' . $e->getMessage()); common_log(LOG_WARNING, __METHOD__ . ' got exception: ' . $e->getMessage());
} catch (Exception $e) {
// Probably just no parent. Should get a specific NoParentException
} }
} }