Skip to content

Commit

Permalink
fixes: fix database close_connection method
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsneto committed Jul 31, 2024
1 parent 9953f96 commit 6d70203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pitanga/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

from .database.operations import *

VERSION = "0.0.1.final.0"
VERSION = "0.0.2.final.0"
__version__ = get_version_pep440_compliant(VERSION)
2 changes: 1 addition & 1 deletion pitanga/database/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def release_connection(self, connection):

def close_all(self):
"""Fecha todas as conexões no pool de conexões."""
if self._pool:
if self._pool and not self._pool.closed:
self._pool.closeall()


Expand Down

0 comments on commit 6d70203

Please sign in to comment.