diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-10-01 07:01:27 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-10-01 07:13:10 +0200 |
| commit | 748b521ac6c720b87fbe1229cb34db26dae2f0ae (patch) | |
| tree | 1d2e4ecec500a6880f84acf5666930fdefd5eec1 /searx/engines/freesound.py | |
| parent | e16b6cb148d9fe6599ec8ce4b2803f0aed3a1d6b (diff) | |
[fix] searx/results.py - TypeError: object of type 'NoneType' has no len()
In some engines, under certain circumstances, the content field can also have
the value ``None``; in these cases, a length check results in an exception::
File "/usr/local/searxng/searx/results.py", line 360, in merge_two_main_results
if len(other.content) > len(origin.content):
^^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
[1] https://github.com/searxng/searxng/issues/5250#issuecomment-3352863488
Reported-by: @scross01 [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/freesound.py')
0 files changed, 0 insertions, 0 deletions