catch UserNoProfileException and continue

This commit is contained in:
Evan Prodromou 2010-04-10 11:36:23 -04:00
parent b47fc9c0bc
commit 5d96cf2eec

View File

@ -49,10 +49,14 @@ class DelUserQueueHandler extends QueueHandler
return true; return true;
} }
try {
if (!$user->hasRole(Profile_role::DELETED)) { if (!$user->hasRole(Profile_role::DELETED)) {
common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting."); common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
return true; return true;
} }
} catch (UserNoProfileException $unp) {
common_log(LOG_INFO, "Deleting user {$user->nickname} with no profile... probably a good idea!");
}
$notice = $this->getNextBatch($user); $notice = $this->getNextBatch($user);
if ($notice->N) { if ($notice->N) {