projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efbbb84
)
Fixes an issue #128: ``Response not working with lxml''. This error happend due to...
author
Den Shabalin
<den.shabalin@gmail.com>
Fri, 19 Aug 2011 16:18:26 +0000
(19:18 +0300)
committer
Den Shabalin
<den.shabalin@gmail.com>
Fri, 19 Aug 2011 16:18:26 +0000
(19:18 +0300)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 0b22f7111b527094475d830adb6121de35168506..5e0a4d3bdcccc1b72e3b1252bf12dd7418a18846 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-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."""