Repair the hgweb search interface
manifest hash: f5c644f14b31da897dc66f96c2852ae1f11f43f1
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -629,7 +629,7 @@ class hgweb:
hi = args['rev'][0]
try:
hi = self.repo.changelog.rev(self.repo.lookup(hi))
- except KeyError:
+ except RepoError:
write(self.search(hi))
return