]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
catch exceptions from snapshot
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 21:54:26 +0000 (13:54 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 22:06:52 +0000 (14:06 -0800)
lib/snapshot.php

index 2a10c6b9359d503dce7c7829f8d5aeff2c4b2f10..a16087ac00da648d6b3f43307be0c776a1b688b4 100644 (file)
@@ -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());
+        }
     }
 
     /**