From: darksider3 Date: Mon, 3 Mar 2014 16:12:37 +0000 (+0000) Subject: Remove exception so it never throwed by HTTPClient X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53be633a8f76b3c409d28773df670f6f6a677132;p=quix0rs-gnu-social.git Remove exception so it never throwed by HTTPClient --- diff --git a/lib/urlshortenerplugin2.php b/lib/urlshortenerplugin2.php index dc1701ccbd..cb11b12ec1 100644 --- a/lib/urlshortenerplugin2.php +++ b/lib/urlshortenerplugin2.php @@ -140,19 +140,12 @@ abstract class UrlShortenerPlugin2 * * @return string response body * - * @todo self with exceptions as in httpGet() */ protected function httpPost($url, $data) { - try{ - $request = HTTPClient::start(); - $response = $request->post($url, null, $data); - - } catch(PluginErrorException $e) - { - $e->printFull(); - return false; - } + + $request = HTTPClient::start(); + $response = $request->post($url, null, $data); return $response->getBody(); } // Hook handlers @@ -207,7 +200,6 @@ abstract class UrlShortenerPlugin2 { $shortenedUrl = $result; //dont create an exception, so we can do that without. - //If needed, i can code done..but actually it seems useless to do that. common_log(LOG_INFO, __CLASS__ . ": $this->shortenerName ". "shortened $url to $shortenedUrl");