mercurial/hgweb/webcommands.py
changeset 19436 f5abfa08fb09
parent 19418 55b9d98a1ef4
child 19462 a87d9102f7af
--- a/mercurial/hgweb/webcommands.py	Wed Jul 17 17:34:47 2013 -0700
+++ b/mercurial/hgweb/webcommands.py	Fri Jul 12 01:58:48 2013 +0400
@@ -196,7 +196,7 @@
             hi = 'tip'
         try:
             ctx = web.repo[hi]
-        except error.RepoError:
+        except (error.RepoError, error.LookupError):
             return _search(web, req, tmpl) # XXX redirect to 404 page?
 
     def changelist(latestonly, **map):