Skip to content

Commit

Permalink
fix: catch ConnectException in GCE check (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie authored Jul 27, 2020
1 parent f675223 commit c438cda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Credentials/GCECredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Google\Auth\ProjectIdProviderInterface;
use Google\Auth\SignBlobInterface;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\ServerException;
use GuzzleHttp\Psr7\Request;
Expand Down Expand Up @@ -283,6 +284,7 @@ public static function onGce(callable $httpHandler = null)
} catch (ClientException $e) {
} catch (ServerException $e) {
} catch (RequestException $e) {
} catch (ConnectException $e) {
}
}
return false;
Expand Down

0 comments on commit c438cda

Please sign in to comment.