commit abd04dd255c5e50324b553462e7e429e86339eaa Author: Erik Stielstra Date: Mon Jan 21 17:23:26 2013 +0100 #8 diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index bee9b61..df412e8 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -10,7 +10,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Guzzle\Http\Exception\BadResponseException; +use Guzzle\Http\Exception\RequestException; /** * @file @@ -1469,7 +1469,7 @@ function install_retrieve_file($uri, $destination) { return FALSE; } } - catch (BadResponseException $e) { + catch (RequestException $e) { return FALSE; } return file_put_contents($path, $data) !== FALSE; @@ -1490,7 +1490,7 @@ function install_check_localization_server($uri) { $response = $request->send(); return TRUE; } - catch (BadResponseException $e) { + catch (RequestException $e) { return FALSE; } }