Skip to content

Commit 4948c7e

Browse files
authored
Do not use bare except
1 parent 98fa1ee commit 4948c7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onelogin/saml2/idp_metadata_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_metadata(url, validate_cert=True):
5454
idp_descriptor_nodes = OneLogin_Saml2_Utils.query(dom, '//md:IDPSSODescriptor')
5555
if idp_descriptor_nodes:
5656
valid = True
57-
except:
57+
except Exception:
5858
pass
5959

6060
if not valid:

0 commit comments

Comments
 (0)