Add the api_update under the exception checker

This commit is contained in:
2011-05-24 11:39:40 +01:00
parent 298c99c6a6
commit fa9fd98b95

View File

@@ -55,10 +55,10 @@ def update_account(username):
try: try:
acc = RedditAccount.objects.get(pk=username) acc = RedditAccount.objects.get(pk=username)
acc.api_update()
except RedditAccount.DoesNotExist: except RedditAccount.DoesNotExist:
pass pass
else: else:
acc.api_update
acc.save() acc.save()