From: Evan Prodromou Date: Sun, 10 Jan 2010 21:54:26 +0000 (-0800) Subject: catch exceptions from snapshot X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8cf1ef862d9021c0c1015b7a5cccb8e26409057a;p=quix0rs-gnu-social.git catch exceptions from snapshot --- 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()); + } } /**