diff options
author | James Walker <walkah@walkah.net> | 2010-07-28 12:04:37 -0400 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-07-28 12:04:37 -0400 |
commit | 5daa5bc2af4bb6a56bcd71e8da01115200864ecd (patch) | |
tree | 9b1b99e81bdfd34a92ac65361d732e52edf0a7ec /scripts | |
parent | 29b8a6a18f67de74fb6adb9e91c10e7d1577c067 (diff) |
try/catch just in case..
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/fixup_status_network.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/fixup_status_network.php b/scripts/fixup_status_network.php index dae492a86..def1eaa88 100644 --- a/scripts/fixup_status_network.php +++ b/scripts/fixup_status_network.php @@ -18,15 +18,20 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -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...'); |