hgweb: in protocol adapter, avoid control reaching end of non-void function

This greatly confounded some Python 3 porting work, once it was
managing to get this far.

Differential Revision: https://phab.mercurial-scm.org/D962
This commit is contained in:
Augie Fackler 2017-10-05 14:12:51 -04:00
parent bacb1366fc
commit 38c5b420ba

View File

@ -15,6 +15,7 @@ from .common import (
)
from .. import (
error,
util,
wireproto,
)
@ -199,3 +200,4 @@ def call(repo, req, cmd):
rsp = rsp.message
req.respond(HTTP_OK, HGERRTYPE, body=rsp)
return []
raise error.ProgrammingError('hgweb.protocol internal failure', rsp)