Minor comment adjustements

This commit is contained in:
Alexandre Flament 2023-10-07 11:25:25 +00:00
parent cb8ed088fa
commit 998573aca3
2 changed files with 4 additions and 3 deletions

View File

@ -91,9 +91,9 @@ DEFAULT_MAX_REDIRECTS = httpx._config.DEFAULT_MAX_REDIRECTS # pylint: disable=p
class NetworkContextNotFound(Exception):
"""A NetworkContext is expected to be set in this thread.
"""A NetworkContext is expected to exist for the current thread.
Use searx.network.set_context_for_thread or searx.network.context_for_thread
Use searx.network.networkcontext_for_thread or searx.network.provide_networkcontext
to set a NetworkContext
"""

View File

@ -360,7 +360,8 @@ class NetwortSettingsDecoder:
class NetworkManager:
"""Contains all the Network instances.
By default, there is one default network, so searx.network.
By default, there is one default network with the default parameters,
so @searx.network.provide_networkcontext() works out of the box.
"""
DEFAULT_NAME = '__DEFAULT__'