pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Added try/except to flash-jwt/__init__.py to intercept call to non-ex… #52

Closed hknust closed 7 years ago

hknust commented 9 years ago

The current version does not work with Python 2.6.x due to a call to total_seconds() in flask-jwt/init.py. I added a try/catch to handle the call in 2.6 and replaced the calculation with an inline formula.

stephane commented 8 years ago

Not relevant anymore this code has been replaced by pyjwt