Skip to content

Commit

Permalink
Don't use bare except when importing (#667)
Browse files Browse the repository at this point in the history
Using a bare except statement when importing hides other errors, which
then get lost when the next import fails.

Co-authored-by: Ed Singleton <singletoned@Lorne.local>
  • Loading branch information
Singletoned and Ed Singleton committed Feb 22, 2024
1 parent 59c3000 commit 9a866ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msal/mex.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

try:
from urllib.parse import urlparse
except:
except ImportError:
from urlparse import urlparse
try:
from xml.etree import cElementTree as ET
Expand Down

0 comments on commit 9a866ca

Please sign in to comment.