From 584e0903c8e5aafa927c441ba366b1dabfc0beb5 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 5 Jun 2023 18:55:20 +1000 Subject: [PATCH] log exception and continue --- app/Models/Media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Media.php b/app/Models/Media.php index f631c0e..60aa6e4 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -558,8 +558,8 @@ class Media extends Model try { static::$storageFileListCache[$disk] = Storage::disk($disk)->allFiles(); } catch (\Exception $e) { - Log::error($e->getMessage()); - throw new \Exception("Cannot get a file list for storage device '$disk'"); + Log::error("Cannot get a file list for storage device '$disk'. Error: " . $e->getMessage()); + continue; } } }