diff options
author | Evan Prodromou <evan@status.net> | 2010-01-10 13:54:26 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-10 14:06:52 -0800 |
commit | 6fdd52467dea6164d71afc9b80e1f8bcf5fb1b9a (patch) | |
tree | 7a869f7c8338a3323889650c7e5a91e4c74484e4 | |
parent | 2e42d3336af659ef76b2a9ade9cec099ba9ff521 (diff) |
catch exceptions from snapshot
-rw-r--r-- | lib/snapshot.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/snapshot.php b/lib/snapshot.php index 2a10c6b93..a16087ac0 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()); + } } /** |