From 82bc0e829a15b198035410233d8225d3ec5f7c39 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 31 Dec 2020 12:30:40 +0100 Subject: [PATCH] [mod] don't use catchall exceptions --- moulinette/actionsmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index 91750d20..bf5db8eb 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -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):