codeparser: When loading the cache, ignore ValueError

(Bitbake rev: 9bff182a4ba9571679985b45b309990a6eddad14)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-06-15 10:27:09 +01:00
parent 7aa7673459
commit 039798a4d2
1 changed files with 1 additions and 1 deletions

View File

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