diff --git a/app/Console/Commands/CloudMediaMigrate.php b/app/Console/Commands/CloudMediaMigrate.php index 0696cb32..767b518a 100644 --- a/app/Console/Commands/CloudMediaMigrate.php +++ b/app/Console/Commands/CloudMediaMigrate.php @@ -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; }