SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e4988c60 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Improve logic

parent caea45b7
No related branches found
No related tags found
No related merge requests found
...@@ -665,7 +665,7 @@ class iThenticateReportForm(forms.ModelForm): ...@@ -665,7 +665,7 @@ class iThenticateReportForm(forms.ModelForm):
elif hasattr(self, 'document_id'): elif hasattr(self, 'document_id'):
self.response = self.call_ithenticate() self.response = self.call_ithenticate()
if self.response: if hasattr(self, 'response') and self.response:
return cleaned_data return cleaned_data
# Don't return anything as someone submitted invalid data for the form at this point! # Don't return anything as someone submitted invalid data for the form at this point!
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment