X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fbackupninja.git;a=blobdiff_plain;f=src%2Flib%2Fbackupninja%2Fconfig.py;h=5f1b283094a8f27641ab327a622163650ef58e26;hp=030fc573121a83474e3486a5c0d5234921555eb4;hb=101bff5ef5fec6382ab572a286c4e79d0312c6cd;hpb=1c6d83b667a24c550a8e67cd7b4161b363647c2a diff --git a/src/lib/backupninja/config.py b/src/lib/backupninja/config.py index 030fc57..5f1b283 100644 --- a/src/lib/backupninja/config.py +++ b/src/lib/backupninja/config.py @@ -28,6 +28,15 @@ default_global_config = {} import logging as log +class ConfigError(Exception): + """ + An exception thrown when something is wrong with the config. + This is not thrown by the config module, but it is meant to be + thrown by handlers when they find something wrong with the + configuration contents. + """ + pass + def get_global_config(opts): """ Returns the global configuration, in a SafeConfigParser object.