Better error message when missing CSL

This commit is contained in:
Jake Howard 2017-05-27 22:34:01 +01:00
parent dbe4e8ae7c
commit 0c9b1324b0

View file

@ -54,7 +54,7 @@ def validate_bibliography(config):
if not os.path.isfile(abs_bibliography):
raise ConfigValidationException("Invalid bibliography path: '{}'".format(abs_bibliography))
if not os.path.isfile(os.path.join(CSL_DIR, "{}.csl".format(config['bibliography']['csl']))):
raise ConfigValidationException("Could not find CSL '{}'".format(config['bibliography']['csl']))
raise ConfigValidationException("Could not find CSL '{}' in {}".format(config['bibliography']['csl'], CSL_DIR))
def validate_context(config):