Pulling in changes from praw repo
This commit is contained in:
@@ -10,7 +10,7 @@ from __future__ import absolute_import
|
||||
import sys
|
||||
|
||||
|
||||
__praw_hash__ = '690f839f2e10b87cc8ad5cbcbade968d5d0d7434'
|
||||
__praw_hash__ = '1e82eb0f8690a2acbdc15d030130dc50507eb4ba'
|
||||
__praw_bundled__ = True
|
||||
|
||||
|
||||
|
||||
@@ -451,18 +451,6 @@ class RateLimitExceeded(APIException):
|
||||
|
||||
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):
|
||||
"""An exception to indicate that a subreddit name is not available."""
|
||||
|
||||
Reference in New Issue
Block a user