From 55d67014035ee7a0c93a6cf1ac96ee3dcfc56420 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 18 Dec 2015 16:49:01 +0100 Subject: [PATCH] Validate the config first --- patacrep/build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/patacrep/build.py b/patacrep/build.py index 29388952..73ba64f3 100644 --- a/patacrep/build.py +++ b/patacrep/build.py @@ -43,12 +43,11 @@ class Songbook(object): def __init__(self, raw_songbook, basename): super().__init__() - self.config = raw_songbook - # Validate config schema = config_model('schema') utils.validate_yaml_schema(raw_songbook, schema) + self.config = raw_songbook self.basename = basename # Some special keys have their value processed. self._set_datadir()