From b33b1af480288b9e472d5da3eff278d058ec3382 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 26 Aug 2014 19:17:21 -0700 Subject: [PATCH] Bugfix --- rophako/model/photo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rophako/model/photo.py b/rophako/model/photo.py index 909a70f..36ad42c 100644 --- a/rophako/model/photo.py +++ b/rophako/model/photo.py @@ -514,6 +514,8 @@ def process_photo(form, filename): # Update the photo data. if not album in index["albums"]: index["albums"][album] = {} + if not "settings" in index: + index["settings"] = dict() if not album in index["settings"]: index["settings"][album] = { "format": "classic",