From: Fred Drake Date: Fri, 11 May 2001 19:20:17 +0000 (+0000) Subject: Clean up a bare except where we only expect to catch pcre.error. X-Git-Tag: v2.2a3~1809 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31e18291c59270a4c84360e7ba725b229a47c7e1;p=thirdparty%2FPython%2Fcpython.git Clean up a bare except where we only expect to catch pcre.error. --- diff --git a/Lib/pre.py b/Lib/pre.py index 357e0a658c04..1665660bd8af 100644 --- a/Lib/pre.py +++ b/Lib/pre.py @@ -364,7 +364,7 @@ class RegexObject: # See if repl contains group references try: repl = pcre_expand(_Dummy, repl) - except: + except error: m = MatchObject(self, source, 0, end, []) repl = lambda m, repl=repl, expand=pcre_expand: expand(m, repl) else: