]> scripts.mit.edu Git - wizard.git/commitdiff
Ignore IOErrors.
authorEdward Z. Yang <ezyang@mit.edu>
Mon, 26 Sep 2011 03:04:20 +0000 (23:04 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Mon, 26 Sep 2011 03:04:20 +0000 (23:04 -0400)
wizard/command/summary/trac.py

index 2699cd4f0e9bfdff4e377fb1a6ea538e2c06c217..650a7ad002604dc1260a582b7ff015415af96591 100644 (file)
@@ -8,7 +8,10 @@ def main(argv, baton):
     variants = set()
     counter = util.Counter()
     for d in deploy.parse_install_lines('trac', options.versions_path):
-        counter.count(d.read('trac.fcgi'))
+        try:
+            counter.count(d.read('trac.fcgi'))
+        except IOError:
+            pass
     for k in counter:
         print "%08x: %d" % (hash(k), counter[k])
     print "----"