Commit 52821444 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Wenn Bing beim Parsen der Ergebnisseite abstürzt, gibt es nun einfach ein leeres Ergebnis zurück

parent 32133fef
......@@ -16,6 +16,8 @@ class Bing extends Searchengine
public function loadResults ($result)
{
try
{
$crawler = new Crawler($result);
$crawler->filter('ol#b_results > li.b_algo')->each(function (Crawler $node, $i)
{
......@@ -37,6 +39,10 @@ class Bing extends Searchengine
$this->counter
);
} );
} catch ( \ErrorException $e)
{
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment