try/catch just in case..

This commit is contained in:
James Walker 2010-07-28 12:04:37 -04:00
parent 29b8a6a18f
commit 5daa5bc2af

View File

@ -18,15 +18,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
print "BEGIN\n";
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
require_once INSTALLDIR.'/scripts/commandline.inc'; require_once INSTALLDIR.'/scripts/commandline.inc';
common_log(LOG_INFO, 'Beginning conversion...'); common_log(LOG_INFO, 'Beginning status_network conversion...');
$sn = new Status_network(); $sn = new Status_network();
$sn->find(); $sn->find();
while ($sn->fetch()) { while ($sn->fetch()) {
$sn->setTags(explode('|', $sn->tags)); try {
$sn->setTags(explode('|', $sn->tags));
} catch (Exception $e) {
common_log(LOG_ERR, $e->getMessage());
}
} }
common_log(LOG_INFO, 'Completed status_network conversion...');