Mercurial > hg
changeset 1122:fb008a1a0a32
Use .has_option to avoid the unknown Exception.
author | Ollivier Robert <roberto@keltia.freenix.fr> |
---|---|
date | Sat, 27 Aug 2005 23:44:02 -0700 |
parents | 14a69c4988cd |
children | 457c23af92bd |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Sat Aug 27 23:43:13 2005 -0700 +++ b/mercurial/hgweb.py Sat Aug 27 23:44:02 2005 -0700 @@ -945,12 +945,12 @@ virtual = virtual.strip('/') if len(virtual): - try: + if self.cp.has_option("paths", virtual): real = self.cp.get("paths", virtual) h = hgweb(real) h.run() return - except: + else: httpnotfound(virtual) return