Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
Undo skip nonexistent user
Browse files Browse the repository at this point in the history
  • Loading branch information
twneale committed Apr 1, 2014
1 parent ae3f55a commit a1622c6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions billy/web/public/management/commands/scout_push.py
Expand Up @@ -31,10 +31,7 @@ def handle_noargs(self, **options):
self.push_user(username, options['dry_run'])

def push_user(self, username, dry_run):
try:
user = User.objects.get(username=username)
except User.DoesNotExist:
return
user = User.objects.get(username=username)
payload = {'email': user.email,
'secret_key': settings.SCOUT_SECRET_KEY,
'service': settings.SCOUT_SERVICE,
Expand Down

0 comments on commit a1622c6

Please sign in to comment.