Merge "Make EditPage robust against null content."
[lhc/web/wiklou.git] / 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" );