]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Gracefully skip missing user entries when initializing inboxes in bulk
authorBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:11:00 +0000 (20:11 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:11:00 +0000 (20:11 -0800)
scripts/initializeinbox.php

index bc31cba1539091222db0e980536d2ce9567db81c..5ae9f7d036392351cec57aa380943030b88229db 100644 (file)
@@ -72,7 +72,7 @@ try {
         foreach ($ids as $id) {
             $user = User::staticGet('id', $id);
             if (empty($user)) {
-                throw new Exception("Can't find user with id '$id'.");
+                print "Can't find user with id '$id'.\n";
             }
             initializeInbox($user);
         }