Fix crash in oauth_callback
This commit is contained in:
parent
7f86e79b25
commit
d90bb179d9
|
@ -202,7 +202,7 @@ def oauth_callback(request):
|
||||||
account.access_token = access_token
|
account.access_token = access_token
|
||||||
account.save()
|
account.save()
|
||||||
except (Account.DoesNotExist, Account.MultipleObjectsReturned):
|
except (Account.DoesNotExist, Account.MultipleObjectsReturned):
|
||||||
preferences = Preferences(theme = Theme.objects.get(1))
|
preferences = Preference(theme = Theme.objects.get(id=1))
|
||||||
account = Account(username=user.acct,
|
account = Account(username=user.acct,
|
||||||
access_token = access_token,
|
access_token = access_token,
|
||||||
client = Client.objects.get(api_base_id=request.session['instance']),
|
client = Client.objects.get(api_base_id=request.session['instance']),
|
||||||
|
|
Loading…
Reference in New Issue