Skip to content

Commit c6abfe0

Browse files
committed
Code Cleanup.
1 parent 10e7a36 commit c6abfe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pgadmin/authenticate/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def __is_any_claim_valid(self, identity, additional_claims):
707707
if not isinstance(additional_claims, dict):
708708
reason = gettext("Additional claim check config is not a dict.")
709709
return (False, reason)
710-
if additional_claims.keys() is None:
710+
if len(additional_claims.keys()) == 0:
711711
reason = gettext("Additional claim check config dict is empty.")
712712
return (False, reason)
713713
for key in additional_claims.keys():

0 commit comments

Comments
 (0)