mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
[fix] hostnames plugin: AttributeError: 'NoneType' object has no attribute 'netloc'
Closes: https://github.com/searxng/searxng/issues/4245 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
36a1ef1239
commit
906b9e7d4c
4 changed files with 10 additions and 5 deletions
|
@ -100,5 +100,6 @@ def response(resp) -> EngineResults:
|
|||
if autotranslate.ok and autotranslate.text:
|
||||
item_list.insert(0, results.types.Translations.Item(text=autotranslate.text))
|
||||
|
||||
results.add(results.types.Translations(translations=item_list, url=resp.search_params["url"]))
|
||||
if item_list:
|
||||
results.add(results.types.Translations(translations=item_list, url=resp.search_params["url"]))
|
||||
return results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue