Skip to content
Snippets Groups Projects
Commit b9a33af4 authored by André Lahmann's avatar André Lahmann Committed by Robert Lange
Browse files

refs #21683 [finc] added try catch block for http-request to Ebsco service

parent e9f874d5
No related merge requests found
......@@ -161,8 +161,12 @@ class EbscoResults implements
*/
public function process($results)
{
// Make the HTTP request:
$results = $this->getHttpClient($this->targetUrl)->send();
try {
// Make the HTTP request:
$results = $this->getHttpClient($this->targetUrl)->send();
} catch (\Exception $e) {
return;
}
if (!$results->isSuccess()) {
$this->results = false;
......
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