diff --git a/app/Models/parserSkripte/Allesklar.php b/app/Models/parserSkripte/Allesklar.php index 045ff22dab63a7193d30659d46e680b6e1547257..3e054e652fad1711e88e6f87384dab8858dc16b7 100644 --- a/app/Models/parserSkripte/Allesklar.php +++ b/app/Models/parserSkripte/Allesklar.php @@ -46,8 +46,9 @@ class Allesklar extends Searchengine $this->gefVon, $this->counter ); - } catch (\InvalidArgumentException $e) { - + } catch (\Exception $e) { + Log::error("A problem occurred parsing results from $this->name"); + return; } }); } diff --git a/app/Models/parserSkripte/BASE.php b/app/Models/parserSkripte/BASE.php index dc9d75cbace71e4c7941ec3eb8c2e27d9120a97f..e5c223e4537a1a7b65124a14c726b2a2e572ad30 100644 --- a/app/Models/parserSkripte/BASE.php +++ b/app/Models/parserSkripte/BASE.php @@ -15,20 +15,6 @@ class BASE extends Searchengine public function loadResults($result) { - - $title = ""; - $link = ""; - $anzeigeLink = $link; - $descr = ""; - - /*$this->counter++; - $this->results[] = new \App\Models\Result( - $title, - $link, - $anzeigeLink, - $descr, - $this->gefVon, - $this->counter - );*/ + return; } } diff --git a/app/Models/parserSkripte/Bing.php b/app/Models/parserSkripte/Bing.php index 5c4253a142d86f2edc91deb55635a8d599c94541..fcdce0dcea311c3d8f9b9d40222f1c8f0811329f 100644 --- a/app/Models/parserSkripte/Bing.php +++ b/app/Models/parserSkripte/Bing.php @@ -35,7 +35,8 @@ class Bing extends Searchengine $this->counter ); }); - } catch (\ErrorException $e) { + } catch (\Exception $e) { + Log::error("A problem occurred parsing results from $this->name"); return; }