Skip to content

Commit 9a866ca

Browse files
SingletonedEd Singleton
andauthored
Don't use bare except when importing (#667)
Using a bare except statement when importing hides other errors, which then get lost when the next import fails. Co-authored-by: Ed Singleton <[email protected]>
1 parent 59c3000 commit 9a866ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/mex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
try:
2929
from urllib.parse import urlparse
30-
except:
30+
except ImportError:
3131
from urlparse import urlparse
3232
try:
3333
from xml.etree import cElementTree as ET

0 commit comments

Comments
 (0)