Skip to content

Commit

Permalink
Fix pylint: no-else-raise
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed May 15, 2019
1 parent 8392fb9 commit 7dc6753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcms/kiwi_auth/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def clean_email(self):
query_set = query_set.exclude(pk=self.instance.pk)
if query_set.count():
raise forms.ValidationError(_('This email address is already in use'))
else:
return self.cleaned_data['email']

return self.cleaned_data['email']


def _modifying_myself(request, object_id):
Expand Down

0 comments on commit 7dc6753

Please sign in to comment.