Unverified Commit fd0220e7 authored by fefzero's avatar fefzero Committed by GitHub
Browse files

Update api.rst to show error message

Old documentation incorrectly shows TweepError.message instead of TweepError.response.
parent 8373a0ab
......@@ -803,7 +803,7 @@ example, ``tweepy.error.TweepError`` is available as ``tweepy.TweepError``.
When a ``TweepError`` is raised due to an error Twitter responded with,
the error code (`as described in the API documentation
<https://dev.twitter.com/overview/api/response-codes>`_) can be accessed
at ``TweepError.message[0]['code']``. Note, however, that ``TweepError``\ s
at ``TweepError.response.text``. Note, however, that ``TweepError``\ s
also may be raised with other things as message (for example plain
error reason strings).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment