diff options
Diffstat (limited to 'webmentions_ssg/forms.py')
| -rw-r--r-- | webmentions_ssg/forms.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webmentions_ssg/forms.py b/webmentions_ssg/forms.py index f5fba51..e3dcdc0 100644 --- a/webmentions_ssg/forms.py +++ b/webmentions_ssg/forms.py @@ -143,7 +143,11 @@ class EndpointForm(FlaskForm): ) def validate_source(self, field: Field) -> None: - """Reject a source URL that equals the target URL.""" + """Reject a source URL that equals the target URL. + + :param field: Source URL field being validated. + :raises ValidationError: If the source URL equals the target URL. + """ if field.data == self.target.data: raise ValidationError(field.gettext("Field must not be equal to target.")) |
