From 31e18291c59270a4c84360e7ba725b229a47c7e1 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 May 2001 19:20:17 +0000 Subject: Clean up a bare except where we only expect to catch pcre.error. --- Lib/pre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pre.py b/Lib/pre.py index 357e0a6..1665660 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: -- cgit v0.12