# HG changeset patch # User roberto@keltia.freenix.fr # Date 1125211371 25200 # Node ID 7fca9752d9459c1b5e14d01f62b3fef5d62da270 # Parent 63b5f68d816747b43732f17d342d4f63d624ce9b Protect against unknown repositories. diff -r 63b5f68d8167 -r 7fca9752d945 mercurial/hgweb.py --- a/mercurial/hgweb.py Sat Aug 27 23:10:49 2005 -0700 +++ b/mercurial/hgweb.py Sat Aug 27 23:42:51 2005 -0700 @@ -939,10 +939,11 @@ virtual = "" if virtual[1:]: - real = self.cp.get("paths", virtual[1:]) - h = hgweb(real) - h.run() - return + if self.cp.has_option("paths", virtual[1:]): + real = self.cp.get("paths", virtual[1:]) + h = hgweb(real) + h.run() + return def header(**map): yield tmpl("header", **map)