From 58001c729fdccd412e0796c83825ff88071d8b67 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 29 Aug 2021 13:56:56 +0200 Subject: [PATCH] Fix https://github.com/friendica/friendica/issues/10473#issuecomment-907749093 --- src/Network/HTTPClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/HTTPClient.php b/src/Network/HTTPClient.php index 301d4c3a7a..4467b2dea2 100644 --- a/src/Network/HTTPClient.php +++ b/src/Network/HTTPClient.php @@ -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 {