From e5179928632654ef4a3733f9c977833c7de9a10c Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Thu, 21 Apr 2016 16:17:27 +0200
Subject: [PATCH] Correct bug in vet_registration_request_ack

---
 scipost/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scipost/views.py b/scipost/views.py
index fe4dc930b..1a9062d0c 100644
--- a/scipost/views.py
+++ b/scipost/views.py
@@ -308,7 +308,7 @@ def vet_registration_request_ack(request, contributor_id):
                     pending_ref_inv = RefereeInvitation.objects.get(invitation_key=contributor.invitation_key)
                     pending_ref_inv.referee = contributor
                     pending_ref_inv.save()
-                except DoesNotExist:
+                except RefereeInvitation.DoesNotExist:
                     pending_ref_inv_exists = False
 
                 email_text = ('Dear ' + title_dict[contributor.title] + ' ' + contributor.user.last_name + 
-- 
GitLab