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:
f178219
)
Update raise_for_status() exception output to reflect that requests.exceptions.HTTPEr...
author
jkleint
<jkleint@gmail.com>
Mon, 18 Jun 2012 20:26:42 +0000
(17:26 -0300)
committer
jkleint
<jkleint@gmail.com>
Mon, 18 Jun 2012 20:26:42 +0000
(17:26 -0300)
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index
316d9a1
..
87a6690
100644
(file)
--- a/
docs/user/quickstart.rst
+++ b/
docs/user/quickstart.rst
@@
-256,9
+256,9
@@
If we made a bad request (non-200 response), we can raise it with
>>> _r.raise_for_status()
Traceback (most recent call last):
- File "requests/models.py", line
394
, in raise_for_status
- raise
self.
error
- urllib2.HTTPError: HTTP Error 404: NOT FOUND
+ File "requests/models.py", line
832
, in raise_for_status
+ raise
http_
error
+ requests.exceptions.HTTPError: 404 Client Error
But, since our ``status_code`` for ``r`` was ``200``, when we call
``raise_for_status()`` we get::