Index: branches/wmf/1.18wmf1/maintenance/cleanupUploadStash.php |
— | — | @@ -65,8 +65,13 @@ |
66 | 66 | $stash = new UploadStash( $repo ); |
67 | 67 | |
68 | 68 | foreach( $keys as $key ) { |
69 | | - $stash->getFile( $key, true ); |
70 | | - $stash->removeFileNoAuth( $key ); |
| 69 | + try { |
| 70 | + $stash->getFile( $key, true ); |
| 71 | + $stash->removeFileNoAuth( $key ); |
| 72 | + } catch ( UploadStashBadPathException $ex ) { |
| 73 | + $this->output( 'Failed removing stashed upload with key:' . $key ); |
| 74 | + continue; |
| 75 | + } |
71 | 76 | } |
72 | 77 | } |
73 | 78 | } |
Property changes on: branches/wmf/1.18wmf1 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
74 | 79 | Merged /trunk/phase3:r109433 |