From 8a2b63ecc4b25e85f93730031fc1e85484197b0a Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 May 2016 10:02:22 +0200 Subject: [PATCH] [fix] this test should happen before we thread settings as a dict --- prosopopee/prosopopee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 692c5a5..51330ed 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -198,12 +198,12 @@ def main(): error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a " "settings.yaml in the current working directory") + error(isinstance(settings, dict), "Your settings.yaml should be a dict") for key, value in DEFAULTS.items(): if key not in settings: settings[key] = value - error(isinstance(settings, dict), "Your settings.yaml should be a dict") error(settings.get("title"), "You need to specify a title in your main settings.yaml") if (settings["rss"] or settings["share"]) and not settings.get("url"):