Fixes an issue #128: ``Response not working with lxml''. This error happend due to...
authorDen Shabalin <den.shabalin@gmail.com>
Fri, 19 Aug 2011 16:18:26 +0000 (19:18 +0300)
committerDen Shabalin <den.shabalin@gmail.com>
Fri, 19 Aug 2011 16:18:26 +0000 (19:18 +0300)
requests/models.py

index 0b22f7111b527094475d830adb6121de35168506..5e0a4d3bdcccc1b72e3b1252bf12dd7418a18846 100644 (file)
@@ -416,7 +416,8 @@ class Response(object):
                 except zlib.error:
                     pass
             return self._content
-
+        else:
+            raise AttributeError
 
     def raise_for_status(self):
         """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""