mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Add the api_update under the exception checker
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user