summaryrefslogtreecommitdiff
path: root/searx/network/network.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-13 15:21:53 +0200
committerAlexandre Flament <alex@al-f.net>2021-04-21 16:24:46 +0200
commitaae7830d14242ac1f98232f428654c5d2c9c5eb2 (patch)
tree83df1950b7b5889fb17eda740a095022a816642e /searx/network/network.py
parentae5954f2dad0386868709a59a1b29d005ebb2b2d (diff)
downloadsearxng-aae7830d14242ac1f98232f428654c5d2c9c5eb2.tar.gz
searxng-aae7830d14242ac1f98232f428654c5d2c9c5eb2.zip
[mod] refactoring: processors
Report to the user suspended engines. searx.search.processor.abstract: * manages suspend time (per network). * reports suspended time to the ResultContainer (method extend_container_if_suspended) * adds the results to the ResultContainer (method extend_container) * handles exceptions (method handle_exception)
Diffstat (limited to 'searx/network/network.py')
-rw-r--r--searx/network/network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/network/network.py b/searx/network/network.py
index f50acf595..15c23d193 100644
--- a/searx/network/network.py
+++ b/searx/network/network.py
@@ -199,7 +199,7 @@ class Network:
def get_network(name=None):
global NETWORKS
- return NETWORKS[name or DEFAULT_NAME]
+ return NETWORKS.get(name or DEFAULT_NAME)
def initialize(settings_engines=None, settings_outgoing=None):