Fix crash when no image search engines are selected
Some checks are pending
Run Integration Tests / test (push) Waiting to run

This commit is contained in:
partisan 2025-06-10 19:02:11 +02:00
parent 49cb7bb94a
commit 1ec633470b

View file

@ -135,6 +135,11 @@ func fetchImageResults(query, safe, lang string, page int, synchronous bool, thu
return results
}
if len(imageSearchEngines) == 0 {
printWarn("No image search engines configured in imageSearchEngines")
return nil
}
engineCount := len(imageSearchEngines)
// Determine the engine to use based on the page number