From 8386edc6d50d3af730a6c37d0ac71e89254d3cb6 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 13 Jun 2018 22:46:58 -0700 Subject: [PATCH] conf: rename ConfigValidationError -> ConfigurationError & inherit from RuntimeError --- conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.py b/conf.py index b9a27ee..8188b92 100644 --- a/conf.py +++ b/conf.py @@ -17,7 +17,7 @@ from collections import defaultdict from . import world -class ConfigValidationError(Exception): +class ConfigurationError(RuntimeError): """Error when config conditions aren't met.""" conf = {'bot': @@ -50,9 +50,9 @@ conf['pylink'] = conf['bot'] confname = 'unconfigured' def validate(condition, errmsg): - """Raises ConfigValidationError with errmsg unless the given condition is met.""" + """Raises ConfigurationError with errmsg unless the given condition is met.""" if not condition: - raise ConfigValidationError(errmsg) + raise ConfigurationError(errmsg) def _log(level, text, *args, logger=None, **kwargs): if logger: