Commit 7424de83 authored by Robert Bradshaw's avatar Robert Bradshaw

More unpickling error catching.

parent 85293286
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment