Fixed wrong return type

This commit is contained in:
Julien Malka 2021-11-30 23:07:13 +01:00
parent b3e35b639a
commit eb70e8a273

View file

@ -48,7 +48,8 @@ class AccountManager(models.Manager):
if result.cofprofile.is_cof:
return result
else:
return None
raise self.model.DoesNotExist