From 34bc3248642807491a75a5e0c9428989a474c915 Mon Sep 17 00:00:00 2001 From: Quinn <73698306+DjQuinnEXP@users.noreply.github.com> Date: Wed, 28 May 2025 09:45:14 +0200 Subject: [PATCH] Fixed exception handling in product resource Made sure that a general exception is also allowed in the product resource. This to ensure the edit page doesn't display a blank screen when the client isn't available --- src/Resources/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/Product.php b/src/Resources/Product.php index 597eded..56330d0 100644 --- a/src/Resources/Product.php +++ b/src/Resources/Product.php @@ -35,7 +35,7 @@ public function getList($query = []) } else { return []; } - } catch (DpdException $e) { + } catch (DpdException|\Exception $e) { $result = $this->cacheWrapper->getCachedList($query, true); //a year // So we had a failure save cache now for an hour