Skip to content

Commit 579a710

Browse files
committed
Merge branch '10.x' into 11.x
2 parents e2d55af + 1d902e9 commit 579a710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Bus/DatabaseBatchRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
use Closure;
77
use DateTimeInterface;
88
use Illuminate\Database\Connection;
9-
use Illuminate\Database\Eloquent\ModelNotFoundException;
109
use Illuminate\Database\PostgresConnection;
1110
use Illuminate\Database\Query\Expression;
1211
use Illuminate\Support\Str;
12+
use Throwable;
1313

1414
class DatabaseBatchRepository implements PrunableBatchRepository
1515
{
@@ -352,7 +352,7 @@ protected function unserialize($serialized)
352352

353353
try {
354354
return unserialize($serialized);
355-
} catch (ModelNotFoundException) {
355+
} catch (Throwable) {
356356
return [];
357357
}
358358
}

0 commit comments

Comments
 (0)