Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_mod.py @ 6374:31a01e3d99cc
hgweb: fix breakage in python < 2.5 introduced in 2c370f08c486
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 24 Mar 2008 16:20:15 +0100 |
parents | 2c370f08c486 |
children | d2bb66a8a435 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Sun Mar 23 21:35:57 2008 -0300 +++ b/mercurial/hgweb/hgweb_mod.py Mon Mar 24 16:20:15 2008 +0100 @@ -248,9 +248,8 @@ except revlog.LookupError, err: req.respond(HTTP_NOT_FOUND, ctype) - if 'manifest' in err.message: - msg = str(err) - else: + msg = str(err) + if 'manifest' not in msg: msg = 'revision not found: %s' % err.name req.write(tmpl('error', error=msg)) except (RepoError, revlog.RevlogError), inst: