From 386fe452af65cb099920040649b5fb3a5b6ad8d0 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Thu, 15 May 2025 10:06:00 -0400 Subject: [PATCH] Catch error --- app/src/Service/Venta/Pago.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Service/Venta/Pago.php b/app/src/Service/Venta/Pago.php index d1e18db..0434451 100644 --- a/app/src/Service/Venta/Pago.php +++ b/app/src/Service/Venta/Pago.php @@ -37,7 +37,7 @@ class Pago $pago = $this->process($this->pagoRepository->fetchById($pago->id)); $this->getUF($pago); return true; - } catch (PDOException) { + } catch (PDOException | EmptyResult) { return false; } }