D2447: hgweb: pass exception message to builtin Exception ctor as sysstr

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Feb 26 08:12:29 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf8ea6988a5fb: hgweb: pass exception message to builtin Exception ctor as sysstr (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2447?vs=6102&id=6118

REVISION DETAIL
  https://phab.mercurial-scm.org/D2447

AFFECTED FILES
  mercurial/hgweb/common.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py
+++ b/mercurial/hgweb/common.py
@@ -93,7 +93,7 @@
     def __init__(self, code, message=None, headers=None):
         if message is None:
             message = _statusmessage(code)
-        Exception.__init__(self, message)
+        Exception.__init__(self, pycompat.sysstr(message))
         self.code = code
         if headers is None:
             headers = []



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list