Merge pull request #1808 from guludo/fix-saved_attrs

Fix error when adding new items to SAVED_ATTRS
This commit is contained in:
ita1024 2016-08-25 18:39:25 +02:00 committed by GitHub
commit 873048ba8e
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class BuildContext(Context.Context):
Logs.debug('build: Could not pickle the build cache %s: %r', dbfn, e)
else:
for x in SAVED_ATTRS:
setattr(self, x, data[x])
setattr(self, x, data.get(x, {}))
finally:
Node.pickle_lock.release()