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.
This commit is contained in:
Brion Vibber 2010-09-10 11:50:19 -07:00
parent cfcb860317
commit f17512cfe6

View File

@ -37,7 +37,13 @@ class MirrorQueueHandler extends QueueHandler
$mirror->subscribed = $notice->profile_id;
if ($mirror->find()) {
while ($mirror->fetch()) {
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;