From 007e6d9eb3176acf1634f8cb7bac377ac20e7877 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:22:12 +0200
Subject: [PATCH] again changed this shit

---
 satella/db.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/satella/db.py b/satella/db.py
index 03157ab8..13b5d08f 100644
--- a/satella/db.py
+++ b/satella/db.py
@@ -37,7 +37,7 @@ class transaction:
         else:
             self.connection.rollback()
 
-        if exc_val is None and self.log_exception:
+        if exc_val is not None and self.log_exception:
             logger.error('Exception occurred of type %s', exc_type, exc_info=exc_val)
 
         self.cursor.close()
-- 
GitLab