From 5daa5bc2af4bb6a56bcd71e8da01115200864ecd Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 28 Jul 2010 12:04:37 -0400 Subject: [PATCH] try/catch just in case.. --- scripts/fixup_status_network.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/fixup_status_network.php b/scripts/fixup_status_network.php index dae492a860..def1eaa884 100644 --- a/scripts/fixup_status_network.php +++ b/scripts/fixup_status_network.php @@ -18,15 +18,20 @@ * along with this program. If not, see . */ -print "BEGIN\n"; define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); 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->find(); 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...');