From 1fdcea0524875659e47800340370d7ffb1912aec Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Thu, 2 Mar 2023 11:07:59 +0200 Subject: [PATCH] replace InitializeException with InitializeError in docs --- src/ahriman/core/configuration/configuration.py | 4 ++-- src/ahriman/web/web.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ahriman/core/configuration/configuration.py b/src/ahriman/core/configuration/configuration.py index 7d350030..89646929 100644 --- a/src/ahriman/core/configuration/configuration.py +++ b/src/ahriman/core/configuration/configuration.py @@ -56,7 +56,7 @@ class Configuration(configparser.RawConfigParser): architecture according to the merge rules. Moreover, the architecture names will be removed from section names. In order to get current settings, the ``check_loaded`` method can be used. This method will raise an - ``InitializeException`` in case if configuration was not yet loaded:: + ``InitializeError`` in case if configuration was not yet loaded:: >>> path, architecture = configuration.check_loaded() """ @@ -165,7 +165,7 @@ class Configuration(configparser.RawConfigParser): Tuple[Path, str]: configuration root path and architecture if loaded Raises: - InitializeException: in case if architecture and/or path are not set + InitializeError: in case if architecture and/or path are not set """ if self.path is None or self.architecture is None: raise InitializeError("Configuration path and/or architecture are not set") diff --git a/src/ahriman/web/web.py b/src/ahriman/web/web.py index 666da10a..ce9e7961 100644 --- a/src/ahriman/web/web.py +++ b/src/ahriman/web/web.py @@ -90,7 +90,7 @@ async def on_startup(application: web.Application) -> None: application(web.Application): web application instance Raises: - InitializeException: in case if matched could not be loaded + InitializeError: in case if matched could not be loaded """ application.logger.info("server started") try: