setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError

I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
This commit is contained in:
Zooko O'Whielacronx 2011-01-28 08:20:06 -07:00
parent f251bbece5
commit b30a269ec2

View File

@ -373,7 +373,7 @@ def check_all_requirements():
for requirement in install_requires:
try:
check_requirement(requirement, vers_and_locs)
except Exception, e:
except (ImportError, PackagingError), e:
errors.append("%s: %s" % (e.__class__.__name__, e))
if errors: