mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 04:53:17 +00:00
Merge pull request #3960 from pixelfed/staging
Update CloudMediaMigrate command
This commit is contained in:
commit
b184369adb
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ use App\Services\MediaStorageService;
|
|||
use App\Util\Lexer\PrettyNumber;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class CloudMediaMigrate extends Command
|
||||
{
|
||||
|
@ -66,6 +67,8 @@ class CloudMediaMigrate extends Command
|
|||
MediaStorageService::store($media);
|
||||
} catch (FileNotFoundException $e) {
|
||||
return;
|
||||
} catch (NotFoundHttpException $e) {
|
||||
return;
|
||||
} catch (Exception $e) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue