Skip to content

Commit 967e1b0

Browse files
committed
fix: set shelf to {} when it's None for whatever reason
1 parent e4b6b73 commit 967e1b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/vsc/utils/cache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def close(self):
169169
self.log.error('cannot open the file cache at %s for writing', self.filename)
170170
else:
171171
if self.retain_old:
172+
if self.shelf is None:
173+
self.shelf = {}
172174
self.shelf.update(self.new_shelf)
173175
self.new_shelf = self.shelf
174176

0 commit comments

Comments
 (0)