Merge "Catch and deal with UploadStashZeroLengthFileException when removing stashed...
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 27 Sep 2012 20:18:15 +0000 (20:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 27 Sep 2012 20:18:15 +0000 (20:18 +0000)
maintenance/cleanupUploadStash.php

index 99985b5..6afe9e1 100644 (file)
@@ -84,6 +84,8 @@ class UploadStashCleanup extends Maintenance {
                                $stash->removeFileNoAuth( $key );
                        } catch ( UploadStashBadPathException $ex ) {
                                $this->output( "Failed removing stashed upload with key: $key\n"  );
+                       } catch ( UploadStashZeroLengthFileException $ex ) {
+                               $this->output( "Failed removing stashed upload with key: $key\n"  );
                        }
                        if ( $i % 100 == 0 ) {
                                $this->output( "$i\n" );