mercurial/hgweb/webcommands.py
changeset 7637 1d54e2f6c0b7
parent 7633 08cabecfa8a8
child 7671 06cf09c822c4
--- a/mercurial/hgweb/webcommands.py	Sun Jan 11 23:04:24 2009 -0600
+++ b/mercurial/hgweb/webcommands.py	Mon Jan 12 10:42:31 2009 -0600
@@ -10,7 +10,6 @@
 from mercurial import error, archival, templatefilters
 from mercurial.node import short, hex, nullid
 from mercurial.util import binary, datestr
-from mercurial.repo import RepoError
 from common import paritygen, staticfile, get_contact, ErrorResponse
 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND
 from mercurial import graphmod, util
@@ -169,7 +168,7 @@
             hi = len(web.repo) - 1
         try:
             ctx = web.repo[hi]
-        except RepoError:
+        except error.RepoError:
             return _search(web, tmpl, hi) # XXX redirect to 404 page?
 
     def changelist(limit=0, **map):