diff options
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/throttling.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index f6bb1cc8..65b45593 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -96,6 +96,9 @@ class SimpleRateThrottle(BaseThrottle): return True self.key = self.get_cache_key(request, view) + if self.key is None: + return True + self.history = cache.get(self.key, []) self.now = self.timer() |
