diff --git a/CHANGELOG b/CHANGELOG index b7f1e9f..3d17aff 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. -## [0.2] - 2021-03-22 +## [0.14] - 2021-04-14 ### Removed diff --git a/README.rst b/README.rst index c729f62..89fdd90 100644 --- a/README.rst +++ b/README.rst @@ -1,13 +1,7 @@ -.. image:: https://badge.fury.io/py/django-request-token.svg - :target: https://badge.fury.io/py/django-request-token - -.. image:: https://travis-ci.org/yunojuno/django-request-token.svg - :target: https://travis-ci.org/yunojuno/django-request-token - Supported versions ------------------ -As of v0.10 this project supports Django 2.2 and above, and Python 3.7/3.8 only on the master branch. For previous verions see the relevant tag / branch. +As of v0.10 this project supports Django 2.2 and above, and Python 3.7 and above only on the master branch. For previous verions see the relevant tag / branch. Django Request Token -------------------- @@ -16,11 +10,6 @@ Django app that uses JWT to manage one-time and expiring tokens to protect URLs. This app currently requires the use of PostgreSQL. -Compatibility -============= - -This library is now Python3 and Django1.11 and above only. - Background ========== diff --git a/pyproject.toml b/pyproject.toml index 14d12a3..8750b09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-request-token" -version = "0.2.b0" +version = "0.14" description = "JWT-backed Django app for managing querystring tokens." license = "MIT" authors = ["YunoJuno "] diff --git a/request_token/middleware.py b/request_token/middleware.py index 97037ad..7cc48fd 100644 --- a/request_token/middleware.py +++ b/request_token/middleware.py @@ -92,5 +92,5 @@ def process_exception( ) -> HttpResponse: """Handle all InvalidTokenErrors.""" if isinstance(exception, InvalidTokenError): - logger.error("JWT request token error", exc_info=sys.exc_info()) + logger.exception("JWT request token error, raising 403") raise PermissionDenied("Invalid request token.")