Skip to content

Commit

Permalink
bc
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 committed Apr 5, 2022
1 parent f891d80 commit 147f19b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Illuminate/Bus/PendingBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ protected function dispatchExistingBatch($batch)
{
try {
$batch = $batch->add($this->jobs);
} catch (\Exception $e) {
} catch (\Error $e) {
} catch (Throwable $e) {
}

if (isset($e)) {
if (isset($batch)) {
$batch->delete();
}
Expand Down

0 comments on commit 147f19b

Please sign in to comment.