Merge pull request #6225 from Anmol-Chauhan/flash-translation-issue

issue #6205
This commit is contained in:
Jitendra Singh 2022-04-05 11:07:25 +05:30 committed by GitHub
commit db7e05178c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -135,7 +135,7 @@ trait Mails
public function sendNewShipmentMail($shipment)
{
$customerLocale = $this->getLocale($shipment);
try {
if ($shipment->email_sent) {
return;
@ -248,7 +248,15 @@ trait Mails
app()->setLocale($locale);
Mail::queue($notification);
try {
Mail::queue($notification);
} catch(\Exception $e) {
app()->setLocale($previousLocale);
\Log::error(
'prepareMail' . $e->getMessage()
);
}
app()->setLocale($previousLocale);
}