codeparser.py: Ignore incomplete cache files

(Bitbake rev: 036cf3cd11b3a6836b77f5ffa760ceee6b71b1ef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-05-12 23:35:53 +01:00
parent bc367526f8
commit 477934e5be
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def parser_cache_save(d):
try:
p = pickle.Unpickler(file(cachefile, "rb"))
data, version = p.load()
except IOError:
except IOError, EOFError:
data, version = None, None
if version == PARSERCACHE_VERSION: