diff options
Diffstat (limited to 'searx/results.py')
| -rw-r--r-- | searx/results.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/results.py b/searx/results.py index 02b7bb204..f3bac2eb7 100644 --- a/searx/results.py +++ b/searx/results.py @@ -357,12 +357,12 @@ def merge_two_infoboxes(origin: LegacyResult, other: LegacyResult): def merge_two_main_results(origin: MainResult | LegacyResult, other: MainResult | LegacyResult): """Merges the values from ``other`` into ``origin``.""" - if len(other.content) > len(origin.content): + if len(other.content or "") > len(origin.content or ""): # use content with more text origin.content = other.content # use title with more text - if len(other.title) > len(origin.title): + if len(other.title or "") > len(origin.title or ""): origin.title = other.title # merge all result's parameters not found in origin |