X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdeluserqueuehandler.php;h=710303938264995a8e77678d8ad3b0cc44b54540;hb=408483f7718a2c81c37eb5f387130381a4a188c8;hp=4a1233a5efa2513fb4b6313a147fa6ad95868722;hpb=4761c07ad8d76f7c34d4db53d32d15e806ba1e88;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);