Skip to content

Commit

Permalink
prevent conversion failure to stop the process
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Dec 15, 2024
1 parent fd4b21b commit 40f2336
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,16 @@ public function generateConversions(
);

} else {
$this->executeConversion(
conversion: $conversion,
force: $force
);
// A failed conversion should not interrupted the process
try {
$this->executeConversion(
conversion: $conversion,
force: $force
);
} catch (\Throwable $th) {
report($th);
}

}
}

Expand Down

0 comments on commit 40f2336

Please sign in to comment.