Skip to content

Commit

Permalink
Always ensure the stamina attribute exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Beattie committed Nov 9, 2012
1 parent 47280ae commit 3a8cd6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cache_throttle/decorators.py
Expand Up @@ -24,6 +24,7 @@ def decorator(fn):
@wraps(fn)
def _wrapped(request, *args, **kwargs):
request.throttled = False
request.stamina = None
try:
interpreted_keys = []
for key in keys:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-cache-throttle',
version='2012.11.09.2',
version='2012.11.09.3',
description='Cache-based rate-limiting for Django.',
long_description='Uses Django\'s caching framework to provide a view decorator that rate limits through a regenerative stamina indicator.',
author='Brad Beattie',
Expand Down

0 comments on commit 3a8cd6a

Please sign in to comment.