X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsnapshot.php;h=a16087ac00da648d6b3f43307be0c776a1b688b4;hb=58649055064361eb2d4cab1aa39cc4cf56a92dd8;hp=2a10c6b9359d503dce7c7829f8d5aeff2c4b2f10;hpb=5581143bee602dbd5417f532f2b483e58d0a4269;p=quix0rs-gnu-social.git diff --git a/lib/snapshot.php b/lib/snapshot.php index 2a10c6b935..a16087ac00 100644 --- a/lib/snapshot.php +++ b/lib/snapshot.php @@ -173,8 +173,12 @@ class Snapshot // XXX: Use OICU2 and OAuth to make authorized requests $reporturl = common_config('snapshot', 'reporturl'); - $request = HTTPClient::start(); - $request->post($reporturl, null, $this->stats); + try { + $request = HTTPClient::start(); + $request->post($reporturl, null, $this->stats); + } catch (Exception $e) { + common_log(LOG_WARNING, "Error in snapshot: " . $e->getMessage()); + } } /**