From c3abcab6bc44b7973e4a167587186937ce66acf9 Mon Sep 17 00:00:00 2001 From: urec56 Date: Tue, 20 Aug 2024 14:43:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/unit_of_work.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/utils/unit_of_work.py b/app/utils/unit_of_work.py index 4d2a5ad..a1da689 100644 --- a/app/utils/unit_of_work.py +++ b/app/utils/unit_of_work.py @@ -24,9 +24,10 @@ class UnitOfWork: await self.rollback() await self.session.close() except SQLAlchemyError: - raise BlackPhoenixException - if isinstance(exc, SQLAlchemyError): - raise BlackPhoenixException + pass + # raise BlackPhoenixException + # if isinstance(exc, SQLAlchemyError): + # raise BlackPhoenixException async def commit(self): await self.session.commit()