def clean(self):
        # Do a test match like the moderator does to ensure that the regular
        # expression is valid.
        if self.cleaned_data['is_regex']:
            try:
                re.match(self.cleaned_data['keyword'], '', re.MULTILINE)
            except Exception, e:
                raise forms.ValidationError(_(e % 'This regular expression is not valid. Error message was: "%s"'))
        return self.cleaned_data
dataset/ETHPy150Open barttc-archive/django-comments-spamfighter/src/comments_spamfighter/admin.py/KeywordAdminForm.clean/swapped operands of `%`