File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212use Magento \Framework \Model \AbstractExtensibleModel ;
1313use Magento \Framework \Registry ;
1414use Magento \Framework \Model \Context ;
15+ use Exception ;
1516use Magento \Framework \Model \ResourceModel \AbstractResource ;
1617
1718/**
@@ -353,7 +354,7 @@ public function getUnserializedFilterAttributes(): array
353354
354355 try {
355356 $ result = unserialize ($ raw , ['allowed_classes ' => false ]);
356- } catch (\ Throwable $ e ) {
357+ } catch (Exception $ e ) {
357358 return [];
358359 }
359360
Original file line number Diff line number Diff line change 1010use Emico \AttributeLanding \Api \Data \FilterInterface ;
1111use Emico \AttributeLanding \Api \Data \LandingPageInterface ;
1212use Emico \AttributeLanding \Api \LandingPageRepositoryInterface ;
13+ use Exception ;
1314use Magento \Framework \Api \SearchCriteriaBuilder ;
1415use Magento \Framework \App \CacheInterface ;
1516use Magento \Framework \Serialize \SerializerInterface ;
@@ -152,7 +153,7 @@ protected function loadPageLookupArray(): array
152153 foreach ($ this ->landingPageRepository ->getList ($ searchCriteria )->getItems () as $ landingPage ) {
153154 try {
154155 $ filters = $ landingPage ->getFilters ();
155- } catch (\ Throwable $ e ) {
156+ } catch (Exception $ e ) {
156157 continue ;
157158 }
158159
You can’t perform that action at this time.
0 commit comments