##// END OF EJS Templates
hgweb: fix scope for RepoError
mpm@selenic.com -
r1219:56582bb2 default
parent child Browse files
Show More
@@ -749,7 +749,7 b' class hgweb:'
749 hi = req.form['rev'][0]
749 hi = req.form['rev'][0]
750 try:
750 try:
751 hi = self.repo.changelog.rev(self.repo.lookup(hi))
751 hi = self.repo.changelog.rev(self.repo.lookup(hi))
752 except RepoError:
752 except hg.RepoError:
753 req.write(self.search(hi))
753 req.write(self.search(hi))
754 return
754 return
755
755
@@ -848,7 +848,7 b' def create_server(repo):'
848
848
849 def __init__(self, *args, **kwargs):
849 def __init__(self, *args, **kwargs):
850 if self.address_family is None:
850 if self.address_family is None:
851 raise RepoError('IPv6 not available on this system')
851 raise hg.RepoError('IPv6 not available on this system')
852 BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
852 BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
853
853
854 class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
854 class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
General Comments 0
You need to be logged in to leave comments. Login now