mercurial/hgweb/common.py
changeset 26200 461e7b700fdf
parent 25717 46e2c57026bc
child 27044 1dde4914fb6c
--- a/mercurial/hgweb/common.py	Fri Sep 04 05:57:58 2015 -0400
+++ b/mercurial/hgweb/common.py	Tue Sep 08 14:56:29 2015 -0400
@@ -80,12 +80,9 @@
     def __init__(self, code, message=None, headers=[]):
         if message is None:
             message = _statusmessage(code)
-        Exception.__init__(self)
+        Exception.__init__(self, message)
         self.code = code
-        self.message = message
         self.headers = headers
-    def __str__(self):
-        return self.message
 
 class continuereader(object):
     def __init__(self, f, write):