From fd0220e74e6a8fefc7fd99aa9f78e4d5e2a1dcf6 Mon Sep 17 00:00:00 2001 From: fefzero Date: Thu, 8 Feb 2018 14:26:35 -0700 Subject: [PATCH] Update api.rst to show error message Old documentation incorrectly shows TweepError.message instead of TweepError.response. --- docs/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- 2.25.1