# HG changeset patch # User Augie Fackler # Date 2017-10-05 18:12:51 # Node ID e21f274cccea6ae15523830f7a4d5229ef77ec85 # Parent b521b3a79afd63047f0e30491602389d5c98e65f 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 diff --git a/mercurial/hgweb/protocol.py b/mercurial/hgweb/protocol.py --- a/mercurial/hgweb/protocol.py +++ b/mercurial/hgweb/protocol.py @@ -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)