From 3fc94181b739ebab3da3ec27cfd2eb554fdeb63a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 11 Nov 2022 22:02:36 +0100 Subject: [PATCH] LINT fixes --- platypush/user/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/user/__init__.py b/platypush/user/__init__.py index c6c2bcd22a..a9e759e52b 100644 --- a/platypush/user/__init__.py +++ b/platypush/user/__init__.py @@ -227,7 +227,7 @@ class UserManager: if not user: raise InvalidCredentialsException() - pub_key, priv_key = get_or_generate_jwt_rsa_key_pair() + _, priv_key = get_or_generate_jwt_rsa_key_pair() payload = { 'username': username, 'created_at': datetime.datetime.now().timestamp(), @@ -257,7 +257,7 @@ class UserManager: :raises: :class:`platypush.exceptions.user.InvalidJWTTokenException` in case of invalid token. """ - pub_key, priv_key = get_or_generate_jwt_rsa_key_pair() + pub_key, _ = get_or_generate_jwt_rsa_key_pair() try: payload = jwt_decode(token.encode(), pub_key, algorithms=['RS256'])