make StreamConsumedError doubly inherit
authorTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 19:58:54 +0000 (15:58 -0400)
committerTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 19:58:54 +0000 (15:58 -0400)
requests/exceptions.py

index 32a1854269a9022cbeeef7693fdc4b40d10ebae6..34c7a0dbffc39a6684048e6ea7274b18ce993a6e 100644 (file)
@@ -90,5 +90,5 @@ class ChunkedEncodingError(RequestException):
 class ContentDecodingError(RequestException, BaseHTTPError):
     """Failed to decode response content"""
 
-class StreamConsumedError(RequestException):
+class StreamConsumedError(RequestException, TypeError):
     """The content for this response was already consumed"""