NoHttpResponseException extends HTTP_Request2_ConnectionException

This commit is contained in:
Mikael Nordfeldth
2016-02-07 01:52:20 +01:00
parent 55546a5aab
commit 098c8b1df4
5 changed files with 7 additions and 6 deletions

View File

@@ -64,8 +64,9 @@ class DiscoveryHints {
if (!$response->isOk()) {
return null;
}
} catch (NoHttpResponseException $e) {
} catch (HTTP_Request2_Exception $e) {
// Any HTTPClient error that might've been thrown
common_log(LOG_ERR, __METHOD__ . ':'.$e->getMessage());
return null;
}