Check for csl

This commit is contained in:
Jake Howard 2017-04-04 20:20:58 +01:00
parent 34c7dde3ed
commit 9a52015397

View file

@ -41,6 +41,8 @@ def validate_bibliography(config):
return return
if 'references' not in config['bibliography']: if 'references' not in config['bibliography']:
raise ConfigValidationException("Missing References Path") raise ConfigValidationException("Missing References Path")
if 'csl' not in config['bibliography']:
raise ConfigValidationException("Missing CSL Name")
abs_bibliography = os.path.abspath(config['bibliography']['references']) abs_bibliography = os.path.abspath(config['bibliography']['references'])
if not os.path.isfile(abs_bibliography): if not os.path.isfile(abs_bibliography):