X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdeluserqueuehandler.php;h=710303938264995a8e77678d8ad3b0cc44b54540;hb=43a67b150a4e4285224ccf695171df731c736a1e;hp=4a1233a5efa2513fb4b6313a147fa6ad95868722;hpb=800b33590696e85480aa73c25261d80f1926e56d;p=quix0rs-gnu-social.git diff --git a/lib/deluserqueuehandler.php b/lib/deluserqueuehandler.php index 4a1233a5ef..7103039382 100644 --- a/lib/deluserqueuehandler.php +++ b/lib/deluserqueuehandler.php @@ -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);