From f60d19535d8fe37d788d2ec292d5133befeaea18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sun, 29 May 2022 15:21:34 +0200 Subject: [PATCH] bugfix release --- CHANGELOG.md | 5 ++--- satella/__init__.py | 2 +- satella/db.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc4504eb..c27fe824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,3 @@ -# v2.19.2 - -* added `db_call` +# v2.20.2 +* fixed transaction to log only for real exceptions diff --git a/satella/__init__.py b/satella/__init__.py index 397e37cf..2401f12e 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.20.1' +__version__ = '2.20.2' diff --git a/satella/db.py b/satella/db.py index 73bc1c9d..03157ab8 100644 --- a/satella/db.py +++ b/satella/db.py @@ -37,7 +37,7 @@ class transaction: else: self.connection.rollback() - if self.log_exception: + if exc_val is None and self.log_exception: logger.error('Exception occurred of type %s', exc_type, exc_info=exc_val) self.cursor.close() -- GitLab