From: Robert Bradshaw Date: Thu, 19 Mar 2009 06:14:59 +0000 (-0700) Subject: More unpickling error catching. X-Git-Tag: 0.11.1.alpha~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7424de834e5af0c531031a8abb3c04f363d80ff3;p=cython.git More unpickling error catching. --- 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: