From 2eb8fecfd54a25d171ef4314c0186dc22b4571d2 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 18 Apr 2016 19:45:10 +0200 Subject: [PATCH] [mod] clearer error message --- prosopopee/prosopopee.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 3bcbb15..46c95d9 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -97,8 +97,9 @@ def main(): error(isinstance(settings, dict), "Your settings.yaml should be a dict") error(settings.get("title"), "You should specify a title in your main settings.yaml") + if settings.get("rss") or settings.get("share"): - error(settings.get("url"), "If you want the rss and the social network share work, you should specify url in main settings") + error(settings.get("url"), "If you want the rss and/or the social network share work, you should specify url in main settings") if settings.get("settings", {}).get("gm"): SETTINGS["gm"].update(settings["settings"]["gm"])