mercurial/hgweb/webutil.py
changeset 36258 af0a19d8812b
parent 36183 44a519ec5077
child 36434 1fb9e01328e4
--- a/mercurial/hgweb/webutil.py	Sat Feb 17 01:09:56 2018 -0500
+++ b/mercurial/hgweb/webutil.py	Sat Feb 17 01:11:48 2018 -0500
@@ -347,7 +347,7 @@
     try:
         return util.processlinerange(fromline, toline)
     except error.ParseError as exc:
-        raise ErrorResponse(HTTP_BAD_REQUEST, str(exc))
+        raise ErrorResponse(HTTP_BAD_REQUEST, pycompat.bytestr(exc))
 
 def formatlinerange(fromline, toline):
     return '%d:%d' % (fromline + 1, toline)