don't report sheet not found exception

This commit is contained in:
Denis Duliçi 2023-10-15 16:38:23 +03:00
parent 651bcbe5b7
commit 41a6f73378
1 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use App\Abstracts\ImportMultipleSheets;
use App\Jobs\Auth\NotifyUser;
use App\Notifications\Common\ImportCompleted;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Exceptions\SheetNotFoundException;
use Maatwebsite\Excel\Validators\ValidationException;
use Throwable;
@ -39,7 +40,9 @@ class Import
['type' => $translation]
);
} catch (Throwable $e) {
report($e);
if (! $e instanceof SheetNotFoundException) {
report($e);
}
$message = self::flashFailures($e);