mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
replace InitializeException with InitializeError in docs
This commit is contained in:
parent
a93f43dcd0
commit
1fdcea0524
@ -56,7 +56,7 @@ class Configuration(configparser.RawConfigParser):
|
|||||||
architecture according to the merge rules. Moreover, the architecture names will be removed from section names.
|
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
|
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()
|
>>> path, architecture = configuration.check_loaded()
|
||||||
"""
|
"""
|
||||||
@ -165,7 +165,7 @@ class Configuration(configparser.RawConfigParser):
|
|||||||
Tuple[Path, str]: configuration root path and architecture if loaded
|
Tuple[Path, str]: configuration root path and architecture if loaded
|
||||||
|
|
||||||
Raises:
|
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:
|
if self.path is None or self.architecture is None:
|
||||||
raise InitializeError("Configuration path and/or architecture are not set")
|
raise InitializeError("Configuration path and/or architecture are not set")
|
||||||
|
@ -90,7 +90,7 @@ async def on_startup(application: web.Application) -> None:
|
|||||||
application(web.Application): web application instance
|
application(web.Application): web application instance
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
InitializeException: in case if matched could not be loaded
|
InitializeError: in case if matched could not be loaded
|
||||||
"""
|
"""
|
||||||
application.logger.info("server started")
|
application.logger.info("server started")
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user