[mod] don't use catchall exceptions

This commit is contained in:
Laurent Peuch 2020-12-31 12:30:40 +01:00
parent c7ba45596c
commit 82bc0e829a

View file

@ -190,7 +190,7 @@ class PatternParameter(_ExtraParameter):
# Use temporarly utf-8 encoded value
try:
v = unicode(arg_value, "utf-8")
except:
except Exception:
v = arg_value
if v and not re.match(pattern, v or "", re.UNICODE):