changeset 12386 | 8eedf53547b8 |
parent 12383 | f1e8d6f6e682 |
parent 12385 | 9a93f4fb141b |
child 12389 | 4ac734b9b3fd |
--- a/mercurial/commands.py Thu Sep 23 01:59:02 2010 +0200 +++ b/mercurial/commands.py Thu Sep 23 10:59:21 2010 +0200 @@ -1585,7 +1585,7 @@ reflags |= re.I try: regexp = re.compile(pattern, reflags) - except Exception, inst: + except re.error, inst: ui.warn(_("grep: invalid match pattern: %s\n") % inst) return 1 sep, eol = ':', '\n'