Skip to content
Snippets Groups Projects
Commit f60d1953 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

bugfix release

parent c63a4ca3
No related branches found
No related tags found
No related merge requests found
# v2.19.2 # v2.20.2
* added `db_call`
* fixed transaction to log only for real exceptions
__version__ = '2.20.1' __version__ = '2.20.2'
...@@ -37,7 +37,7 @@ class transaction: ...@@ -37,7 +37,7 @@ class transaction:
else: else:
self.connection.rollback() 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) logger.error('Exception occurred of type %s', exc_type, exc_info=exc_val)
self.cursor.close() self.cursor.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment