Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit 0fd1947

Browse files
committed
get instead of try/except
1 parent b8f247e commit 0fd1947

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/oidcservice/oidc/registration.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,8 @@ def add_post_logout_redirect_uris(request_args=None, service=None, **kwargs):
6363
"""
6464

6565
if "post_logout_redirect_uris" not in request_args:
66-
try:
67-
_uris = service.service_context.register_args[
68-
'post_logout_redirect_uris']
69-
except KeyError:
70-
pass
71-
else:
66+
_uris = service.service_context.register_args.get('post_logout_redirect_uris')
67+
if _uris:
7268
request_args["post_logout_redirect_uris"] = _uris
7369

7470
return request_args, {}

0 commit comments

Comments
 (0)