From e4988c609181b905b23df7c42e73891d8e24515f Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Mon, 28 Aug 2017 14:38:11 +0200 Subject: [PATCH] Improve logic --- submissions/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submissions/forms.py b/submissions/forms.py index 91af6fbb6..fe415fecf 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -665,7 +665,7 @@ class iThenticateReportForm(forms.ModelForm): elif hasattr(self, 'document_id'): self.response = self.call_ithenticate() - if self.response: + if hasattr(self, 'response') and self.response: return cleaned_data # Don't return anything as someone submitted invalid data for the form at this point! return None -- GitLab