Skip to content

Commit

Permalink
Merge pull request civicrm#31073 from civicrm/5.78
Browse files Browse the repository at this point in the history
5.78
  • Loading branch information
seamuslee001 authored Sep 8, 2024
2 parents 24557ce + 9029d19 commit 6ce3779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Extension/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ private function grabRemoteJson() {
catch (GuzzleException $e) {
throw new CRM_Extension_Exception(ts('The CiviCRM public extensions directory at %1 could not be contacted - please check your webserver can make external HTTP requests', [1 => $this->getRepositoryUrl()]), 'connection_error');
}
restore_error_handler();
finally {
restore_error_handler();
}

if ($response->getStatusCode() !== 200) {
throw new CRM_Extension_Exception(ts('The CiviCRM public extensions directory at %1 could not be contacted - please check your webserver can make external HTTP requests', [1 => $this->getRepositoryUrl()]), 'connection_error');
Expand Down

0 comments on commit 6ce3779

Please sign in to comment.