@@ -42,7 +42,7 @@ public function __construct()
4242 {
4343 $ this ->name = 'grprestashop ' ;
4444 $ this ->tab = 'emailing ' ;
45- $ this ->version = '2.0.3 ' ;
45+ $ this ->version = '2.0.4 ' ;
4646 $ this ->author = 'GetResponse ' ;
4747 $ this ->need_instance = 0 ;
4848 $ this ->module_key = '311ef191c3135b237511d18c4bc27369 ' ;
@@ -379,7 +379,7 @@ public function hookActionNewsletterRegistrationAfter($params)
379379 new GetResponse \Contact \Application \Command \UpsertSubscriber ($ email , true , $ shop ->id , $ name )
380380 );
381381 }
382- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
382+ } catch (\ Throwable $ e ) {
383383 $ this ->logGetResponseError ($ e ->getMessage ());
384384 }
385385 }
@@ -393,7 +393,7 @@ public function hookActionObjectCustomerUpdateAfter($params)
393393 if (null !== $ customer ) {
394394 $ this ->upsertCustomer ($ customer );
395395 }
396- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
396+ } catch (\ Throwable $ e ) {
397397 $ this ->logGetResponseError ($ e ->getMessage ());
398398 }
399399 }
@@ -407,7 +407,7 @@ public function hookActionCustomerAccountAdd($params)
407407 if (null !== $ customer ) {
408408 $ this ->upsertCustomer ($ customer );
409409 }
410- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
410+ } catch (\ Throwable $ e ) {
411411 $ this ->logGetResponseError ($ e ->getMessage ());
412412 }
413413 }
@@ -448,7 +448,7 @@ public function hookActionCartSave($params)
448448 new GetResponse \TrackingCode \DomainModel \TrackingCodeBufferService ($ storage )
449449 );
450450 $ trackingCodeCartService ->addCartToBuffer ($ cart ->id , $ shop ->id );
451- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
451+ } catch (\ Throwable $ e ) {
452452 $ this ->logGetResponseError ($ e ->getMessage ());
453453 }
454454 }
@@ -462,7 +462,7 @@ public function hookActionObjectAddressUpdateAfter($params)
462462 if (null !== $ address && null !== $ address ->id_customer ) {
463463 $ this ->upsertCustomer (new Customer ($ address ->id_customer ));
464464 }
465- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
465+ } catch (\ Throwable $ e ) {
466466 $ this ->logGetResponseError ($ e ->getMessage ());
467467 }
468468 }
@@ -476,7 +476,7 @@ public function hookActionObjectAddressAddAfter($params)
476476 if (null !== $ address && null !== $ address ->id_customer ) {
477477 $ this ->upsertCustomer (new Customer ($ address ->id_customer ));
478478 }
479- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
479+ } catch (\ Throwable $ e ) {
480480 $ this ->logGetResponseError ($ e ->getMessage ());
481481 }
482482 }
@@ -490,7 +490,7 @@ public function hookActionProductAdd($params)
490490 if (null !== $ product ) {
491491 $ this ->upsertProduct ($ product );
492492 }
493- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
493+ } catch (\ Throwable $ e ) {
494494 $ this ->logGetResponseError ($ e ->getMessage ());
495495 }
496496 }
@@ -500,7 +500,7 @@ public function hookActionProductUpdate($params)
500500 try {
501501 $ product = new Product ($ params ['id_product ' ]);
502502 $ this ->upsertProduct ($ product );
503- } catch (GetResponse \ MessageSender \ Application \ MessageSenderException $ e ) {
503+ } catch (\ Throwable $ e ) {
504504 $ this ->logGetResponseError ($ e ->getMessage ());
505505 }
506506 }
@@ -516,9 +516,7 @@ public function hookActionOrderStatusUpdate($params)
516516 }
517517
518518 $ this ->upsertOrder ($ order );
519- } catch (GetResponse \MessageSender \Application \MessageSenderException $ e ) {
520- $ this ->logGetResponseError ($ e ->getMessage ());
521- } catch (Exception $ e ) {
519+ } catch (\Throwable $ e ) {
522520 $ this ->logGetResponseError ($ e ->getMessage ());
523521 }
524522 }
@@ -533,9 +531,7 @@ public function hookActionOrderStatusPostUpdate($params)
533531 $ order = new Order ($ params ['id_order ' ]);
534532
535533 $ this ->upsertOrder ($ order );
536- } catch (GetResponse \MessageSender \Application \MessageSenderException $ e ) {
537- $ this ->logGetResponseError ($ e ->getMessage ());
538- } catch (Exception $ e ) {
534+ } catch (\Throwable $ e ) {
539535 $ this ->logGetResponseError ($ e ->getMessage ());
540536 }
541537 }
@@ -551,9 +547,7 @@ public function hookActionOrderEdited($params)
551547 }
552548
553549 $ this ->upsertOrder ($ order );
554- } catch (GetResponse \MessageSender \Application \MessageSenderException $ e ) {
555- $ this ->logGetResponseError ($ e ->getMessage ());
556- } catch (Exception $ e ) {
550+ } catch (\Throwable $ e ) {
557551 $ this ->logGetResponseError ($ e ->getMessage ());
558552 }
559553 }
0 commit comments