Index: trunk/phase3/maintenance/cleanupUploadStash.php |
— | — | @@ -69,8 +69,13 @@ |
70 | 70 | $stash = new UploadStash( $repo ); |
71 | 71 | |
72 | 72 | foreach( $keys as $key ) { |
73 | | - $stash->getFile( $key, true ); |
74 | | - $stash->removeFileNoAuth( $key ); |
| 73 | + try { |
| 74 | + $stash->getFile( $key, true ); |
| 75 | + $stash->removeFileNoAuth( $key ); |
| 76 | + } catch ( UploadStashBadPathException $ex ) { |
| 77 | + $this->output( 'Failed removing stashed upload with key:' . $key ); |
| 78 | + continue; |
| 79 | + } |
75 | 80 | } |
76 | 81 | } |
77 | 82 | } |