File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Quote/Observer Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Quote \Observer ;
79
810use Magento \Framework \Event \Observer ;
@@ -76,7 +78,7 @@ public function execute(Observer $observer)
7678 if ($ invoice ) {
7779 $ this ->invoiceSender ->send ($ invoice );
7880 }
79- } catch (\Exception $ e ) {
81+ } catch (\Throwable $ e ) {
8082 $ this ->logger ->critical ($ e );
8183 }
8284 }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function execute(Observer $observer)
6060 if (!$ redirectUrl && $ order ->getCanSendNewEmailFlag ()) {
6161 try {
6262 $ this ->orderSender ->send ($ order );
63- } catch (\Exception $ e ) {
63+ } catch (\Throwable $ e ) {
6464 $ this ->logger ->critical ($ e );
6565 }
6666 }
You can’t perform that action at this time.
0 commit comments