From 7424de834e5af0c531031a8abb3c04f363d80ff3 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 18 Mar 2009 23:14:59 -0700 Subject: [PATCH] More unpickling error catching. --- Cython/Compiler/Scanning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 6c2144fc..059e32e3 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -84,7 +84,7 @@ def open_pickled_lexicon(expected_hash): print("Lexicon hash mismatch:") ### print(" expected " + expected_hash) ### print(" got " + actual_hash) ### - except IOError, e: + except (IOError, pickle.UnpicklingError), e: print("Warning: Unable to read pickled lexicon " + lexicon_pickle) print(e) if f: -- 2.26.2