Pulling in changes from praw repo

This commit is contained in:
Michael Lazar
2018-03-20 17:39:57 -04:00
parent b1f620c5a1
commit 0fb7abe435
2 changed files with 1 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ from __future__ import absolute_import
import sys import sys
__praw_hash__ = '690f839f2e10b87cc8ad5cbcbade968d5d0d7434' __praw_hash__ = '1e82eb0f8690a2acbdc15d030130dc50507eb4ba'
__praw_bundled__ = True __praw_bundled__ = True

View File

@@ -451,18 +451,6 @@ class RateLimitExceeded(APIException):
ERROR_TYPE = 'RATELIMIT' ERROR_TYPE = 'RATELIMIT'
def __init__(self, error_type, message, field, response):
"""Construct an instance of the RateLimitExceeded exception.
The parameters match that of :class:`APIException`.
The `sleep_time` attribute is extracted from the response object.
"""
super(RateLimitExceeded, self).__init__(error_type, message,
field, response)
self.sleep_time = self.response['ratelimit']
class SubredditExists(APIException): class SubredditExists(APIException):
"""An exception to indicate that a subreddit name is not available.""" """An exception to indicate that a subreddit name is not available."""