# HG changeset patch # User mpm@selenic.com # Date 1126201773 25200 # Node ID 56582bb2b86975be2bac42031c2b42c8f8e5413b # Parent cde6818e082ac823f13d769cd39854cf1d97261b hgweb: fix scope for RepoError diff -r cde6818e082a -r 56582bb2b869 mercurial/hgweb.py --- a/mercurial/hgweb.py Thu Sep 08 01:27:25 2005 -0700 +++ b/mercurial/hgweb.py Thu Sep 08 10:49:33 2005 -0700 @@ -749,7 +749,7 @@ 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 __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):