summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pre.py2
1 files changed, 1 insertions, 1 deletions
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: