Skip to content

Commit ef3bdec

Browse files
committed
tmp: Catch all exceptions
1 parent 562723e commit ef3bdec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aleph/oauth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def _get_groups(provider, oauth_token, id_token):
4747
"""Groups are not standardised in OIDC, so this is provider-specific."""
4848
try:
4949
access_token = _parse_access_token(provider, oauth_token)
50-
except DecodeError:
50+
# except DecodeError:
51+
except Exception:
5152
# Failed to parse the access_token as JWT. Most probably, the required
5253
# information about groups is in the id_token.
5354
access_token = {}

0 commit comments

Comments
 (0)