Commits

Anonymous committed 3217865 Draft

Comments (0)

Files changed (1)

cherrypy/_cperror.py

         if self.code < 400 or self.code > 599:
             raise ValueError("status must be between 400 and 599.")
 
-        # See http://www.python.org/dev/peps/pep-0352/
-        # self.message = message
-        self._message = message or defaultmsg
-        CherryPyException.__init__(self, status, message)
+        self.message = message or defaultmsg
+        CherryPyException.__init__(self)
 
     def set_response(self):
         """Modify cherrypy.response status, headers, and body to represent self.
         response.headers.pop('Content-Length', None)
 
         content = ntob(self.get_error_page(self.status, traceback=tb,
-                                           message=self._message), 'utf-8')
+                                           message=self.message), 'utf-8')
         response.body = content
 
         _be_ie_unfriendly(self.code)