From: fefzero Date: Thu, 8 Feb 2018 21:26:35 +0000 (-0700) Subject: Update api.rst to show error message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd0220e74e6a8fefc7fd99aa9f78e4d5e2a1dcf6;p=tweepy.git Update api.rst to show error message Old documentation incorrectly shows TweepError.message instead of TweepError.response. --- diff --git a/docs/api.rst b/docs/api.rst index ce9d370..843ff15 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 `_) 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).