Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/RecordManager/Base/Harvest/GeniePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* PHP version 8
*
* Copyright (c) Villanova University 2022.
* Copyright (c) Villanova University 2022-2026.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -401,7 +401,11 @@ protected function sendRequest($path, $params): MessageInterface
for ($try = 1; $try <= $maxTries; $try++) {
$this->infoMsg("Sending request: $url");
try {
$response = $client->get($url, compact('headers'));
try {
$response = $client->get($url, compact('headers'));
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
$response = $e->getResponse();
}
$code = $response->getStatusCode();
if ($code == 404) {
return $response;
Expand Down