Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flask-limiter breaks with werkzeug 0.10 #25

Closed
g-p-g opened this issue Jan 30, 2015 · 2 comments
Closed

flask-limiter breaks with werkzeug 0.10 #25

g-p-g opened this issue Jan 30, 2015 · 2 comments

Comments

@g-p-g
Copy link
Contributor

g-p-g commented Jan 30, 2015

Hello,

werkzeug released a 0.10 version and now flask-limiter no longer works. This is because there is some logic for patching HTTP_STATUS_CODE when werkzeug is older than "0.9", the problem is that such dict doesn't exist at 0.10 and "0.10" < "0.9".

@g-p-g
Copy link
Contributor Author

g-p-g commented Jan 30, 2015

import pkg_resources
d = pkg_resources.get_distribution("werkzeug")

vcheck = pkg_resources.parse_version('0.9')
vthis = d.parsed_version

print d.version
print d.version < '0.9'
print vthis < vcheck

0.10
True
False

@alisaifee
Copy link
Owner

Fixed with #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants