From 8f690adec2adcf4359ac59358605a4b5e25f7837 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Fri, 20 Feb 2026 15:59:31 +0100 Subject: [PATCH] Bug fix --- README.md | 3 +++ pyproject.toml | 2 +- src/config_parser/exceptions.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c38f166..0b96b56 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,9 @@ If the configuration file content is: the result will be `{'section1': {'key1': 'value1', 'key2': 'value2', 'number': 42, 'number2': 3.14, 'number3': -1, 'boolean': True, 'boolean2': False, 'null': None}, 'section2': {'hello': 'world'}, 'section3': {'key': 'value'}}` ## Changelog +### Version 1.2.1 +- Bug fix: `jeb_utils.exceptions.ConfigurationSyntaxError` has inherited from `SyntaxError`, which is semantically wrong. Now it is a normal exception and it inherits from `Exception`. + ### Version 1.2.0 - Support for a default configuration for INI files - Consistent `__all__` lists in all modules diff --git a/pyproject.toml b/pyproject.toml index 458c5cc..9f527d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,5 +4,5 @@ build-backend = "setuptools.build_meta" [project] name = "config-parser" -version = "1.2.0" +version = "1.2.1" description = "A configuration file parser." \ No newline at end of file diff --git a/src/config_parser/exceptions.py b/src/config_parser/exceptions.py index 7a51c05..b1bd671 100644 --- a/src/config_parser/exceptions.py +++ b/src/config_parser/exceptions.py @@ -16,7 +16,7 @@ __all__ = [ 'JSONTypeError' ] -class ConfigurationSyntaxError(SyntaxError): ... +class ConfigurationSyntaxError(Exception): ... class EscapeSequenceSyntaxError(ConfigurationSyntaxError): ...