From: Richard Purdie Date: Thu, 12 May 2011 22:35:53 +0000 (+0100) Subject: codeparser.py: Ignore incomplete cache files X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=036cf3cd11b3a6836b77f5ffa760ceee6b71b1ef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git codeparser.py: Ignore incomplete cache files Signed-off-by: Richard Purdie --- diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index f4482a46b81..be625a0c21d 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -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: