forked from GNUsocial/gnu-social
catch UserNoProfileException and continue
This commit is contained in:
parent
b47fc9c0bc
commit
5d96cf2eec
@ -49,9 +49,13 @@ class DelUserQueueHandler extends QueueHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!$user->hasRole(Profile_role::DELETED)) {
|
||||
common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
|
||||
return true;
|
||||
try {
|
||||
if (!$user->hasRole(Profile_role::DELETED)) {
|
||||
common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
|
||||
return true;
|
||||
}
|
||||
} catch (UserNoProfileException $unp) {
|
||||
common_log(LOG_INFO, "Deleting user {$user->nickname} with no profile... probably a good idea!");
|
||||
}
|
||||
|
||||
$notice = $this->getNextBatch($user);
|
||||
|
Loading…
Reference in New Issue
Block a user