1. Éric Araujo
  2. distutils2-features

Commits

Éric Araujo  committed 5491a99

Make error message from resolve_name more useful for debugging

  • Participants
  • Parent commits 89c74f5
  • Branches default

Comments (0)

Files changed (1)

File distutils2/util.py

View file
  • Ignore whitespace
     for part in parts[1:]:
         try:
             ret = getattr(ret, part)
-        except AttributeError:
-            raise ImportError
+        except AttributeError, exc:
+            raise ImportError(exc)
 
     return ret