mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] don't use catchall exceptions
This commit is contained in:
parent
c7ba45596c
commit
82bc0e829a
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue