Skip to content

Commit 6e26a18

Browse files
committed
Do not reset closed connections.
1 parent 4328a61 commit 6e26a18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DBUtils/SteadyDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _reset(self, force=False):
310310
Rollback if forced or the connection was in a transaction.
311311
312312
"""
313-
if force or self._transaction:
313+
if not self._closed and (force or self._transaction):
314314
try:
315315
self.rollback()
316316
except Exception:

0 commit comments

Comments
 (0)