validators: fix glob validator raise statement misplacement.
This commit is contained in:
parent
35e0d8c279
commit
ba9bf581d6
1 changed files with 0 additions and 1 deletions
|
|
@ -21,6 +21,5 @@ def glob_validator(node, value):
|
|||
try:
|
||||
re.compile('^' + glob2re(value) + '$')
|
||||
except Exception:
|
||||
raise
|
||||
msg = _(u'Invalid glob pattern')
|
||||
raise colander.Invalid(node, msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue