except (ImportError, EnvironmentError), le:
sys.stderr.write("Got exception using 'pkg_resources' to get the version of coverage: %s" % (le,))
pass
+except pkg_resources.DistributionNotFound, le:
+ sys.stderr.write("pkg_resources reported no coverage package installed: %s" % (le,))
+ pass
try:
import pkg_resources
except (ImportError, EnvironmentError), le:
sys.stderr.write("Got exception using 'pkg_resources' to get the version of trialcoverage: %s" % (le,))
pass
+except pkg_resources.DistributionNotFound, le:
+ sys.stderr.write("pkg_resources reported no trialcoverage package installed: %s" % (le,))
+ pass