Fix deletion with missing content.json files

This commit is contained in:
shortcutme 2018-04-28 21:49:12 +02:00
parent 8f69575b95
commit 37fcf2fed7
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ class SiteStorage(object):
self.log.debug("Deleting files from content.json...")
files = [] # Get filenames
for content_inner_path in self.site.content_manager.contents.keys():
content = self.site.content_manager.contents[content_inner_path]
content = self.site.content_manager.contents.get(content_inner_path, {})
files.append(content_inner_path)
# Add normal files
for file_relative_path in content.get("files", {}).keys():