diff options
-rw-r--r-- | lorrycontroller/readconf.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py index 9ea8173..d060067 100644 --- a/lorrycontroller/readconf.py +++ b/lorrycontroller/readconf.py @@ -279,6 +279,12 @@ class ReadConfiguration(lorrycontroller.LorryControllerRoute): ignore=json.dumps(section['ignore'])) +class ValidationError(Exception): + + def __init__(self, msg): + Exception.__init__(self, msg) + + class LorryControllerConfValidator(object): def validate_config(self, conf_obj): @@ -343,9 +349,3 @@ class LorryControllerConfValidator(object): raise ValidationError( 'mandatory field %s missing in section %r' % (field, section)) - - -class ValidationError(Exception): - - def __init__(self, msg): - Exception.__init__(self, msg) |