Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Mar 4, 2025
1 parent 4407779 commit a95eaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asab/web/auth/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def user_info(self) -> typing.Dict[str, typing.Any]:
return self._Claims


def get_claim(self, key: str, default = None) -> typing.Any:
def get_claim(self, key: str, default=None) -> typing.Any:
"""
Get the value of a token claim.
Expand Down
2 changes: 1 addition & 1 deletion asab/web/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_id_token_claims(bearer_token: str, auth_server_public_key: jwcrypto.jwk.
raise e
except jwcrypto.jws.InvalidJWSSignature as e:
raise e
except ValueError as e:
except ValueError:
L.debug("Authentication failed: Bearer token is likely not a JWT ID token.")
raise NotAuthenticatedError()
except jwcrypto.jws.InvalidJWSObject as e:
Expand Down

0 comments on commit a95eaf7

Please sign in to comment.