diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index 56c893538..1d5799ea0 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -108,7 +108,7 @@ class SimpleRateThrottle(BaseThrottle): return (None, None) num, period = rate.split('/') num_requests = int(num) - + denominator = period[:-1] m = re.search(self._RATE_DENOMINATOR_REGEX, denominator) dg = m.groups()