From e48282d3c1888307df4e3d767315862ebb4d0757 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org>
Date: Mon, 24 Jan 2022 06:48:55 +0100
Subject: [PATCH] Debug

---
 scipost_django/profiles/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scipost_django/profiles/models.py b/scipost_django/profiles/models.py
index 9b05690c2..ca3b4193e 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):
-- 
GitLab