mercurial/hgweb.py
changeset 1219 56582bb2b869
parent 1217 f1895785c79e
child 1260 4603eef60237
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -749,7 +749,7 @@ class hgweb:
                 hi = req.form['rev'][0]
                 try:
                     hi = self.repo.changelog.rev(self.repo.lookup(hi))
-                except RepoError:
+                except hg.RepoError:
                     req.write(self.search(hi))
                     return
 
@@ -848,7 +848,7 @@ def create_server(repo):
 
         def __init__(self, *args, **kwargs):
             if self.address_family is None:
-                raise RepoError('IPv6 not available on this system')
+                raise hg.RepoError('IPv6 not available on this system')
             BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
 
     class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):