diff -r 563fd95a6efb -r 4daa22071d5d mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Sat Mar 10 19:57:08 2018 -0800 +++ b/mercurial/hgweb/hgweb_mod.py Sat Mar 10 20:51:46 2018 -0800 @@ -404,7 +404,7 @@ # override easily enough. res.status = '200 Script output follows' res.headers['Content-Type'] = ctype - return getattr(webcommands, cmd)(rctx, wsgireq, rctx.tmpl) + return getattr(webcommands, cmd)(rctx) except (error.LookupError, error.RepoLookupError) as err: msg = pycompat.bytestr(err)