diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 9a02b64..4cc236b 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -3710,6 +3710,10 @@ function system_retrieve_file($url, $destination = NULL, $managed = FALSE, $repl
     drupal_set_message(t('HTTP error @errorcode occurred when trying to fetch @remote.', array('@errorcode' => $response->getStatusCode(), '@remote' => $url)), 'error');
     return FALSE; 
   }
+  catch (RequestException $e) {
+    drupal_set_message(t('HTTP error @errorcode occurred when trying to fetch @remote.', array('@errorcode' => $response->getStatusCode(), '@remote' => $url)), 'error');
+    return FALSE;
+  }
   if (!$local) {
     drupal_set_message(t('@remote could not be saved to @path.', array('@remote' => $url, '@path' => $path)), 'error');
   }
