From 9a520153971caa54c84e3bb97757938cd0c30863 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 4 Apr 2017 20:20:58 +0100 Subject: [PATCH] Check for csl --- md_pdf/config/validate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/md_pdf/config/validate.py b/md_pdf/config/validate.py index 3b7a52d..07096d5 100644 --- a/md_pdf/config/validate.py +++ b/md_pdf/config/validate.py @@ -41,6 +41,8 @@ def validate_bibliography(config): return if 'references' not in config['bibliography']: raise ConfigValidationException("Missing References Path") + if 'csl' not in config['bibliography']: + raise ConfigValidationException("Missing CSL Name") abs_bibliography = os.path.abspath(config['bibliography']['references']) if not os.path.isfile(abs_bibliography):