##// END OF EJS Templates
hgweb: fix breakage in python < 2.5 introduced in 2c370f08c486
Dirkjan Ochtman -
r6374:31a01e3d default
parent child Browse files
Show More
@@ -248,9 +248,8 b' class hgweb(object):'
248
248
249 except revlog.LookupError, err:
249 except revlog.LookupError, err:
250 req.respond(HTTP_NOT_FOUND, ctype)
250 req.respond(HTTP_NOT_FOUND, ctype)
251 if 'manifest' in err.message:
252 msg = str(err)
251 msg = str(err)
253 else:
252 if 'manifest' not in msg:
254 msg = 'revision not found: %s' % err.name
253 msg = 'revision not found: %s' % err.name
255 req.write(tmpl('error', error=msg))
254 req.write(tmpl('error', error=msg))
256 except (RepoError, revlog.RevlogError), inst:
255 except (RepoError, revlog.RevlogError), inst:
General Comments 0
You need to be logged in to leave comments. Login now