From a63e6cd1596a2f52390167dfeba65c05ca4e2f2c Mon Sep 17 00:00:00 2001 From: Ed Singleton Date: Tue, 20 Feb 2024 08:35:08 +0000 Subject: [PATCH] Don't use bare except when importing Using a bare except statement when importing hides other errors, which then get lost when the next import fails. --- msal/mex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msal/mex.py b/msal/mex.py index edecba37..e6f3ed07 100644 --- a/msal/mex.py +++ b/msal/mex.py @@ -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