catch exceptions from snapshot

This commit is contained in:
Evan Prodromou 2010-01-10 13:54:26 -08:00
parent 2e42d3336a
commit 6fdd52467d

View File

@ -173,8 +173,12 @@ class Snapshot
// XXX: Use OICU2 and OAuth to make authorized requests // XXX: Use OICU2 and OAuth to make authorized requests
$reporturl = common_config('snapshot', 'reporturl'); $reporturl = common_config('snapshot', 'reporturl');
$request = HTTPClient::start(); try {
$request->post($reporturl, null, $this->stats); $request = HTTPClient::start();
$request->post($reporturl, null, $this->stats);
} catch (Exception $e) {
common_log(LOG_WARNING, "Error in snapshot: " . $e->getMessage());
}
} }
/** /**