diff --git a/src/Illuminate/Bus/DatabaseBatchRepository.php b/src/Illuminate/Bus/DatabaseBatchRepository.php index 4333c515ac79..5a7aadde66bd 100644 --- a/src/Illuminate/Bus/DatabaseBatchRepository.php +++ b/src/Illuminate/Bus/DatabaseBatchRepository.php @@ -6,10 +6,10 @@ use Closure; use DateTimeInterface; use Illuminate\Database\Connection; -use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\PostgresConnection; use Illuminate\Database\Query\Expression; use Illuminate\Support\Str; +use Throwable; class DatabaseBatchRepository implements PrunableBatchRepository { @@ -352,7 +352,7 @@ protected function unserialize($serialized) try { return unserialize($serialized); - } catch (ModelNotFoundException) { + } catch (Throwable) { return []; } }