Skip to content

Commit f6b48bf

Browse files
committed
Do not use bare except
1 parent a3d278d commit f6b48bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def gather_authn_response_args(self, sp_entity_id, name_id_policy, userid,
605605
'encrypt_cert_assertion']:
606606
try:
607607
_val = kwargs[param]
608-
except:
608+
except KeyError:
609609
_val = None
610610

611611
if _val is None:

0 commit comments

Comments
 (0)