catch exceptions from snapshot
This commit is contained in:
parent
f396701b64
commit
8cf1ef862d
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user