add-in StreamConsumedError
authorTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 19:51:10 +0000 (15:51 -0400)
committerTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 19:51:10 +0000 (15:51 -0400)
requests/exceptions.py

index d8f05f0817b6048bcd5e8e3a73e80eedf6e27d5b..32a1854269a9022cbeeef7693fdc4b40d10ebae6 100644 (file)
@@ -89,3 +89,6 @@ class ChunkedEncodingError(RequestException):
 
 class ContentDecodingError(RequestException, BaseHTTPError):
     """Failed to decode response content"""
+
+class StreamConsumedError(RequestException):
+    """The content for this response was already consumed"""