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)