From: James Walker Date: Wed, 28 Jul 2010 16:04:37 +0000 (-0400) Subject: try/catch just in case.. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5daa5bc2af4bb6a56bcd71e8da01115200864ecd;p=quix0rs-gnu-social.git try/catch just in case.. --- 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...');