2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-10 02:15:13 +01:00

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

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()