From 06a02982f73c80c980a6d95c3bb4ca6e6ae83c33 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 19 Mar 2008 23:20:01 +0000 Subject: [PATCH] if we get a bad cat, spit a warning and *continue* processing the rest of the wiki :) --- maintenance/populateCategory.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/populateCategory.inc b/maintenance/populateCategory.inc index 8acdaf5b52..3b006fef5f 100644 --- a/maintenance/populateCategory.inc +++ b/maintenance/populateCategory.inc @@ -55,10 +55,10 @@ function populateCategory( $begin, $maxlag, $throttle, $force ) { # Use the row to update the category count $cat = Category::newFromName( $name ); if( !is_object( $cat ) ) { - var_dump( $cat ); - throw new MWException( "The category named $name is not valid?!" ); + echo "The category named $name is not valid?!\n"; + } else { + $cat->refreshCounts(); } - $cat->refreshCounts(); ++$i; if( !($i % REPORTING_INTERVAL) ) { -- 2.20.1