aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/utils
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-07-14 13:08:41 -0700
committerGravatar MarkKoz <[email protected]>2020-07-14 13:08:41 -0700
commit2a5bd3242582a9767d70e18e97fc643b9b6c30ec (patch)
treecfc8c37fa2a59046f91305c86eca9e977dd1ef29 /pydis_site/utils
parentAllow empty list for message embeds (diff)
parentCatch ConnectionError when trying to get updated repository data (diff)
Merge branch 'master' into feat/deps/344/django-3.0
Diffstat (limited to 'pydis_site/utils')
-rw-r--r--pydis_site/utils/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/utils/account.py b/pydis_site/utils/account.py
index 2d699c88..b4e41198 100644
--- a/pydis_site/utils/account.py
+++ b/pydis_site/utils/account.py
@@ -54,7 +54,7 @@ class SocialAccountAdapter(DefaultSocialAccountAdapter):
raise ImmediateHttpResponse(redirect(reverse("home")))
- if user.roles.count() <= 1:
+ if len(user.roles) <= 1:
add_message(request, ERROR, ERROR_JOIN_DISCORD)
raise ImmediateHttpResponse(redirect(reverse("home")))