diff options
author | Evan Prodromou <evan@status.net> | 2010-04-10 11:36:23 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-10 11:36:23 -0400 |
commit | 5d96cf2eec15dc08af5c539be53b427c50ef89a9 (patch) | |
tree | 0bc3563f8045b30e5dda2d2e18798f88e7d121a5 /lib | |
parent | b47fc9c0bcd9f37438d2aaeb7b5bc98183b554ea (diff) |
catch UserNoProfileException and continue
Diffstat (limited to 'lib')
-rw-r--r-- | lib/deluserqueuehandler.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/deluserqueuehandler.php b/lib/deluserqueuehandler.php index 4a1233a5e..710303938 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); |