Philipp 2021-08-29 13:56:56 +02:00
parent d517fed12d
commit 58001c729f
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD

View File

@ -148,7 +148,7 @@ class HTTPClient implements IHTTPClient
} else {
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
}
} catch (InvalidArgumentException $argumentException) {
} catch (InvalidArgumentException | \InvalidArgumentException $argumentException) {
$this->logger->info('Invalid Argument for HTTP call.', ['url' => $url, 'method' => $method, 'exception' => $argumentException]);
return new CurlResult($url, '', ['http_code' => $argumentException->getCode()], $argumentException->getCode(), $argumentException->getMessage());
} finally {