mirror of
https://github.com/searxng/searxng.git
synced 2024-11-13 13:41:03 +00:00
e86c96974d
The user_agent attribute of the Flask request object is an instance of the werkzeug.user_agent.UserAgent class. This will fix the following error of the self_info plugin: > ERROR:searx.plugins.self_info: Exception while calling post_search > Traceback (most recent call last): > File "searx/plugins/__init__.py", line 203, in call > ret = getattr(plugin, plugin_type)(*args, **kwargs) > File "searx/plugins/self_info.py", line 31, in post_search > search.result_container.answers['user-agent'] = {'answer': gettext('Your user-agent is: ') + ua} > TypeError: can only concatenate str (not "UserAgent") to str |
||
---|---|---|
.. | ||
engines | ||
network | ||
processors | ||
settings | ||
__init__.py | ||
test_answerers.py | ||
test_engines_init.py | ||
test_exceptions.py | ||
test_external_bangs.py | ||
test_locales.py | ||
test_plugins.py | ||
test_preferences.py | ||
test_query.py | ||
test_results.py | ||
test_search.py | ||
test_settings_loader.py | ||
test_tineye.py | ||
test_utils.py | ||
test_webadapter.py | ||
test_webapp.py | ||
test_webutils.py |