try/catch just in case..
This commit is contained in:
parent
29b8a6a18f
commit
5daa5bc2af
@ -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...');
|
||||||
|
Loading…
Reference in New Issue
Block a user