diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-10 11:50:19 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-10 11:50:19 -0700 |
commit | f17512cfe603b8f00576cdff10f3a3d71924c000 (patch) | |
tree | 8fc05c4aaa089f2735728aec372e3e113b107da5 /plugins/SubMirror | |
parent | cfcb8603171cf9dd30fe54ee682a3666c0b21d7e (diff) |
Catch exceptions during SubMirror mirror attempt; log & skip that one if found.
Should avoid things like RequireValidatedEmailPlugin causing infinite retry loops if the mirror-er isn't validated yet.
Diffstat (limited to 'plugins/SubMirror')
-rw-r--r-- | plugins/SubMirror/lib/mirrorqueuehandler.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/SubMirror/lib/mirrorqueuehandler.php b/plugins/SubMirror/lib/mirrorqueuehandler.php index 92b36b5eb..c1a6f65e3 100644 --- a/plugins/SubMirror/lib/mirrorqueuehandler.php +++ b/plugins/SubMirror/lib/mirrorqueuehandler.php @@ -37,7 +37,13 @@ class MirrorQueueHandler extends QueueHandler $mirror->subscribed = $notice->profile_id; if ($mirror->find()) { while ($mirror->fetch()) { - $mirror->mirrorNotice($notice); + try { + $mirror->mirrorNotice($notice); + } catch (Exception $e) { + common_log(LOG_ERR, "Exception trying to mirror notice $notice->id " . + "for subscriber $mirror->subscriber ($mirror->style): " . + $e->getMessage()); + } } } return true; |