diff --git a/submissions/signals.py b/submissions/signals.py index 664ff585d5255a68d32b3ef6c949d79ab58edda3..d14134ba0d4753b025f251d8f2a8ca04cf406460 100644 --- a/submissions/signals.py +++ b/submissions/signals.py @@ -45,7 +45,7 @@ def notify_new_referee_invitation(sender, instance, created, **kwargs): """ Notify a Referee about a new refereeing invitation. """ - if created: + if created and instance.referee: notify.send(sender=sender, recipient=instance.referee.user, actor=instance.submission.editor_in_charge, verb=' would like to invite you to referee a Submission.', target=instance)