changeset 34509:e21f274cccea

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
author Augie Fackler <augie@google.com>
date Thu, 05 Oct 2017 14:12:51 -0400
parents b521b3a79afd
children c23fa3103925
files mercurial/hgweb/protocol.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py	Thu Oct 05 14:18:55 2017 -0700
+++ b/mercurial/hgweb/protocol.py	Thu Oct 05 14:12:51 2017 -0400
@@ -15,6 +15,7 @@
 )
 
 from .. import (
+    error,
     util,
     wireproto,
 )
@@ -199,3 +200,4 @@
         rsp = rsp.message
         req.respond(HTTP_OK, HGERRTYPE, body=rsp)
         return []
+    raise error.ProgrammingError('hgweb.protocol internal failure', rsp)