]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: don't exit with an error code from show-tool-versions.py when coverage or...
authorzooko <zooko@zooko.com>
Mon, 10 May 2010 05:03:29 +0000 (10:33 +0530)
committerzooko <zooko@zooko.com>
Mon, 10 May 2010 05:03:29 +0000 (10:33 +0530)
Ignore-this: a54fe128520ff837a9bb70362dd55d8f

darcs-hash:a079846759ce65c484e8d8b92a853d90f798e4eb

misc/show-tool-versions.py

index 73582d9f4dd21535899a72c54c13fca364501cfe..ffe9aa0b669df642ebfe20fbe8c114e7bd316b1d 100755 (executable)
@@ -66,6 +66,9 @@ try:
 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
@@ -75,3 +78,6 @@ try:
 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