Merge pull request #3960 from pixelfed/staging

Update CloudMediaMigrate command
This commit is contained in:
daniel 2022-12-18 00:13:20 -07:00 committed by GitHub
commit b184369adb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ use App\Services\MediaStorageService;
use App\Util\Lexer\PrettyNumber; use App\Util\Lexer\PrettyNumber;
use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Storage;
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class CloudMediaMigrate extends Command class CloudMediaMigrate extends Command
{ {
@ -66,6 +67,8 @@ class CloudMediaMigrate extends Command
MediaStorageService::store($media); MediaStorageService::store($media);
} catch (FileNotFoundException $e) { } catch (FileNotFoundException $e) {
return; return;
} catch (NotFoundHttpException $e) {
return;
} catch (Exception $e) { } catch (Exception $e) {
return; return;
} }