Commits

Jacob Söndergaard committed 9f2e376

Comments (0)

Files changed (1)

 class CouchException(httpclient.HTTPError):
     '''Base class for Couch specific exceptions'''
     def __init__(self, HTTPError, msg=None):
-        body = json_decode(HTTPError.response.body)
-        message = msg or body.get('reason')
-        httpclient.HTTPError.__init__(self, HTTPError.code, message, HTTPError.response)
+        httpclient.HTTPError.__init__(self, HTTPError.code,
+                msg or HTTPError.message, HTTPError.response)
 
 
 class NotModified(CouchException):