Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pylint from 2.4.4 to 2.6.0 #27

Merged
merged 5 commits into from
Jan 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pycognito/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __setattr__(self, name, value):
if name in list(self.__dict__.get("_data", {}).keys()):
self._data[name] = value
else:
super(UserObj, self).__setattr__(name, value)
super().__setattr__(name, value)

def save(self, admin=False):
if admin:
Expand Down Expand Up @@ -234,7 +234,9 @@ def verify_token(self, token, id_name, token_use):
issuer=unverified_claims.get("iss"),
)
except JWTError:
raise TokenVerificationException("Your {} token could not be verified.")
raise TokenVerificationException(
"Your {} token could not be verified."
) from None
setattr(self, id_name, token)
return verified

Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ mock==4.0.3
coverage==5.3.1
black==20.8b1
flake8==3.8.4
pylint==2.4.4
pylint==2.6.0
pytest==6.2.1