diff --git a/scipost_django/profiles/models.py b/scipost_django/profiles/models.py index 9a16ac549f72ff1c623b167e92041921f7456cd2..9b05690c258f3edcd4e2e0e8beca075ecabeefe7 100644 --- a/scipost_django/profiles/models.py +++ b/scipost_django/profiles/models.py @@ -89,7 +89,7 @@ class Profile(models.Model): def roles(self): try: return self.contributor.roles - except Contributor.DoesNotExist: + except KeyError, Contributor.DoesNotExist: return None def __str__(self):