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 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Quote \Observer ;
7
9
8
10
use Magento \Framework \Event \Observer ;
@@ -76,7 +78,7 @@ public function execute(Observer $observer)
76
78
if ($ invoice ) {
77
79
$ this ->invoiceSender ->send ($ invoice );
78
80
}
79
- } catch (\Exception $ e ) {
81
+ } catch (\Throwable $ e ) {
80
82
$ this ->logger ->critical ($ e );
81
83
}
82
84
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function execute(Observer $observer)
60
60
if (!$ redirectUrl && $ order ->getCanSendNewEmailFlag ()) {
61
61
try {
62
62
$ this ->orderSender ->send ($ order );
63
- } catch (\Exception $ e ) {
63
+ } catch (\Throwable $ e ) {
64
64
$ this ->logger ->critical ($ e );
65
65
}
66
66
}
You can’t perform that action at this time.
0 commit comments