Fix crash when no image search engines are selected
Some checks are pending
Run Integration Tests / test (push) Waiting to run
Some checks are pending
Run Integration Tests / test (push) Waiting to run
This commit is contained in:
parent
49cb7bb94a
commit
1ec633470b
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ func fetchImageResults(query, safe, lang string, page int, synchronous bool, thu
|
||||||
return results
|
return results
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(imageSearchEngines) == 0 {
|
||||||
|
printWarn("No image search engines configured in imageSearchEngines")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
engineCount := len(imageSearchEngines)
|
engineCount := len(imageSearchEngines)
|
||||||
|
|
||||||
// Determine the engine to use based on the page number
|
// Determine the engine to use based on the page number
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue