diff options
author | 2020-10-10 20:19:53 +0300 | |
---|---|---|
committer | 2020-10-10 20:19:53 +0300 | |
commit | d80c7f18fadd1abc1aa2c080c2de6e7dee395883 (patch) | |
tree | ab3663f177c822e8782fd6ac76508007a0318d1e /pydis_site/apps/api/viewsets | |
parent | Cover metricity voice ban status with tests (diff) |
Fix wrong exception name
Diffstat (limited to 'pydis_site/apps/api/viewsets')
-rw-r--r-- | pydis_site/apps/api/viewsets/bot/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/user.py b/pydis_site/apps/api/viewsets/bot/user.py index 19f55555..367f6b65 100644 --- a/pydis_site/apps/api/viewsets/bot/user.py +++ b/pydis_site/apps/api/viewsets/bot/user.py @@ -247,7 +247,7 @@ class UserViewSet(ModelViewSet): Infraction.objects.get(user__id=user.id, active=True, type="voice_ban") except ObjectDoesNotExist: voice_banned = False - except MultipleObjectReturned: + except MultipleObjectsReturned: voice_banned = True else: voice_banned = True |