diff --git a/scipost_django/profiles/models.py b/scipost_django/profiles/models.py index 9b05690c258f3edcd4e2e0e8beca075ecabeefe7..ca3b4193e7669763017e5a4d89e4dd7fd29ff113 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 KeyError, Contributor.DoesNotExist: + except (KeyError, Contributor.DoesNotExist): return None def __str__(self):