Skip to content

Commit e4723fb

Browse files
committed
Use shorthand to remove the "id" item from dict
No need to generate an exception and stack trace. Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 322a5f6 commit e4723fb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/saml2/client_base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,7 @@ def create_authn_request(self, destination, vorg="", scoping=None,
444444
**kwargs)
445445
args.update(_args)
446446

447-
try:
448-
del args["id"]
449-
except KeyError:
450-
pass
447+
args.pop("id", None)
451448

452449
if sign is None:
453450
sign = self.authn_requests_signed

0 commit comments

Comments
 (0)