summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/codeparser.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index fdba06f678..f4482a46b8 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -72,8 +72,11 @@ def parser_cache_save(d):
72 72
73 lf = bb.utils.lockfile(cachefile + ".lock") 73 lf = bb.utils.lockfile(cachefile + ".lock")
74 74
75 p = pickle.Unpickler(file(cachefile, "rb")) 75 try:
76 data, version = p.load() 76 p = pickle.Unpickler(file(cachefile, "rb"))
77 data, version = p.load()
78 except IOError:
79 data, version = None, None
77 80
78 if version == PARSERCACHE_VERSION: 81 if version == PARSERCACHE_VERSION:
79 for h in data[0]: 82 for h in data[0]: