mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Add the api_update under the exception checker
This commit is contained in:
@@ -55,10 +55,10 @@ def update_account(username):
|
||||
|
||||
try:
|
||||
acc = RedditAccount.objects.get(pk=username)
|
||||
acc.api_update()
|
||||
except RedditAccount.DoesNotExist:
|
||||
pass
|
||||
else:
|
||||
acc.api_update
|
||||
acc.save()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user