From 9178a3ad6a54ab75d5ca61f03a074229f6c66424 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 7 Nov 2016 23:44:38 +0100 Subject: [PATCH] Handle missing content --- src/Content/ContentManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index f9948f9b..d8b901c3 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -740,7 +740,7 @@ class ContentManager(object): else: new_content = json.load(file) if inner_path in self.contents: - old_content = self.contents.get(inner_path) + old_content = self.contents.get(inner_path, {"modified": 0}) # Checks if its newer the ours if old_content["modified"] == new_content["modified"] and ignore_same: # Ignore, have the same content.json return None