瀏覽代碼

Update CloudMediaMigrate command

Daniel Supernault 2 年之前
父節點
當前提交
fe76e709be
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Console/Commands/CloudMediaMigrate.php

+ 3 - 0
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;
                     }