diff --git a/scipost/views.py b/scipost/views.py
index fe4dc930be213adf94e92dbd953ea5926436cfb2..1a9062d0c601d7c578a7c3ac5061709569f86ccf 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 +