Skip to content

Commit

Permalink
Ignore missing social services when cleaning users.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Mar 19, 2015
1 parent 673eb41 commit e6ca46d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/profile/tasks.py
Expand Up @@ -58,7 +58,11 @@ class CleanupUser(Task):
def run(self, user_id):
UserSubscription.trim_user_read_stories(user_id)
UserSubscription.verify_feeds_scheduled(user_id)

ss = MSocialServices.objects.get(user_id=user_id)

try:
ss = MSocialServices.objects.get(user_id=user_id)
except MSocialServices.DoesNotExist:
logging.debug(" ---> ~FRCleaning up user, can't find social_services for user_id: ~SB%s" % user_id)
return
ss.sync_twitter_photo()

0 comments on commit e6ca46d

Please sign in to comment.