summaryrefslogtreecommitdiff
path: root/requirements-dev.txt
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2024-08-28 20:05:11 +0200
committerBnyro <bnyro@tutanota.com>2024-08-30 11:29:34 +0200
commite86c96974d3f6cff74f1a901b44d3eeb0b200b9f (patch)
treedd92b7aa80ba6e7ff4433c3cab4ba06d78be4833 /requirements-dev.txt
parentb05e2853842fcb4b40ce112978af15f046756e44 (diff)
downloadsearxng-e86c96974d3f6cff74f1a901b44d3eeb0b200b9f.tar.gz
searxng-e86c96974d3f6cff74f1a901b44d3eeb0b200b9f.zip
[fix] self_info: request.user_agent is not a str
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
Diffstat (limited to 'requirements-dev.txt')
0 files changed, 0 insertions, 0 deletions