mirror of https://github.com/searxng/searxng.git
Minor comment adjustements
This commit is contained in:
parent
cb8ed088fa
commit
998573aca3
|
@ -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
|
||||
"""
|
||||
|
||||
|
|
|
@ -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__'
|
||||
|
|
Loading…
Reference in New Issue