From 6ac3f14868ac0c5214b297b12117da8d7dc477e8 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 4 Dec 2024 12:06:08 -0500 Subject: [PATCH] Rename ConfigValueException to ConfigOptionException --- lib/nntp/tiny/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nntp/tiny/config.py b/lib/nntp/tiny/config.py index 31de94b..b971c85 100644 --- a/lib/nntp/tiny/config.py +++ b/lib/nntp/tiny/config.py @@ -15,7 +15,7 @@ class ConfigSectionException(ConfigException): self.section ) -class ConfigValueException(ConfigException): +class ConfigOptionException(ConfigException): def __init__(self, section: str, value: str): self.section = section self.value = value @@ -72,6 +72,6 @@ class Config(configparser.ConfigParser): raise ConfigSectionException(section) if not self.has_option(section, option): - raise ConfigValueException(section, option) + raise ConfigOptionException(section, option) return super().get(section, option, *args, **kwargs)