From 214c16ab5c2529ed0cba2a3d4152dddc4fdf90cc Mon Sep 17 00:00:00 2001 From: Arkadii Chyzhov <achyzhov@ebay.com> Date: Mon, 30 Mar 2015 12:31:39 +0300 Subject: [PATCH] MAGETWO-35445: Create a plugin around Order load in GiftMessage - added handling of exception --- app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php b/app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php index 6027b68c073..c63a726d8e8 100644 --- a/app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php +++ b/app/code/Magento/GiftMessage/Model/Plugin/OrderGet.php @@ -114,7 +114,7 @@ class OrderGet $order->getEntityId(), $orderItem->getItemId() ); - } catch (Exception $e) { + } catch (NoSuchEntityException $e) { continue; } -- GitLab