Skip to content

Commit 63c97ad

Browse files
committed
Fixed a bug in a RegexValidator error message string interpolation.
- Legacy-Id: 14841
1 parent e29aa99 commit 63c97ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __call__(self, value):
3838
except Exception as e:
3939
raise ValidationError('Please enter a valid regular expression. '
4040
'Got an error when trying to compile this: "%s" : "%s"'
41-
% (self.message, value, e))
41+
% (value, e))
4242
if '-*' in value:
4343
raise ValidationError('Did you really mean that? The regular expression '
4444
'contains "-*" which will match zero or more dashes. '

0 commit comments

Comments
 (0)