Commit 3a4a961da581b6a02ee7d20c037c746088fa39c5

Vicent Marti 2013-01-04T20:25:10

clar: Corrupted pickles

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/generate.py b/tests-clar/generate.py
index e7115db..eea27b0 100644
--- a/tests-clar/generate.py
+++ b/tests-clar/generate.py
@@ -157,7 +157,7 @@ class TestSuite(object):
             fp = open(path, 'rb')
             cache = pickle.load(fp)
             fp.close()
-        except IOError:
+        except IOError, ValueError:
             pass
 
         return cache