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:
parent
cfcb860317
commit
f17512cfe6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user