mercurial/hgweb/common.py
changeset 36429 f8ea6988a5fb
parent 36397 7a3590e67868
child 36647 052351e3e1cd
--- a/mercurial/hgweb/common.py	Mon Feb 26 00:28:10 2018 -0500
+++ b/mercurial/hgweb/common.py	Mon Feb 26 00:49:33 2018 -0500
@@ -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 = []