From 137b3409c6be063ce1a5e5870e74bf623644e9fa Mon Sep 17 00:00:00 2001 From: chirac Date: Mon, 23 Jul 2018 11:05:01 +0200 Subject: [PATCH] Update authentication.py --- api/authentication.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/authentication.py b/api/authentication.py index 0198c4ce..05dc626b 100644 --- a/api/authentication.py +++ b/api/authentication.py @@ -44,7 +44,6 @@ class ExpiringTokenAuthentication(TokenAuthentication): ) utc_now = datetime.datetime.now(datetime.timezone.utc) if token.created < utc_now - token_duration: - raise ValueError('boom') raise exceptions.AuthenticationFailed(_('Token has expired')) return (token.user, token)