database-wrapper-redis 0.2.23__tar.gz → 0.2.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: database_wrapper_redis
3
- Version: 0.2.23
3
+ Version: 0.2.24
4
4
  Summary: database_wrapper for Redis database
5
5
  Author-email: Gints Murans <gm@gm.lv>
6
6
  License: GNU General Public License v3.0 (GPL-3.0)
@@ -32,7 +32,7 @@ Classifier: Topic :: Software Development
32
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: >=3.8
34
34
  Description-Content-Type: text/markdown
35
- Requires-Dist: database_wrapper==0.2.23
35
+ Requires-Dist: database_wrapper==0.2.24
36
36
  Requires-Dist: redis
37
37
 
38
38
  # database_wrapper_redis
@@ -350,9 +350,13 @@ class RedisDbAsync(KVDbBase):
350
350
  """
351
351
  Close connection to the database.
352
352
  """
353
- if self._connection:
354
- await self._connection.aclose()
355
- self._connection = None
353
+ try:
354
+ if self._connection:
355
+ await self._connection.aclose()
356
+ except Exception as e:
357
+ self.logger.debug(f"Error while closing connection: {e}")
358
+ finally:
359
+ self._connection = None
356
360
 
357
361
 
358
362
  class RedisDbWithPool(KVDbBase):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: database_wrapper_redis
3
- Version: 0.2.23
3
+ Version: 0.2.24
4
4
  Summary: database_wrapper for Redis database
5
5
  Author-email: Gints Murans <gm@gm.lv>
6
6
  License: GNU General Public License v3.0 (GPL-3.0)
@@ -32,7 +32,7 @@ Classifier: Topic :: Software Development
32
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: >=3.8
34
34
  Description-Content-Type: text/markdown
35
- Requires-Dist: database_wrapper==0.2.23
35
+ Requires-Dist: database_wrapper==0.2.24
36
36
  Requires-Dist: redis
37
37
 
38
38
  # database_wrapper_redis
@@ -0,0 +1,2 @@
1
+ database_wrapper==0.2.24
2
+ redis
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "database_wrapper_redis"
7
- version = "0.2.23"
7
+ version = "0.2.24"
8
8
  description = "database_wrapper for Redis database"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -32,7 +32,7 @@ classifiers = [
32
32
  "Topic :: Software Development :: Libraries :: Python Modules",
33
33
  ]
34
34
  keywords = ["database", "wrapper", "python", "redis"]
35
- dependencies = ["database_wrapper == 0.2.23", "redis"]
35
+ dependencies = ["database_wrapper == 0.2.24", "redis"]
36
36
 
37
37
  [project.urls]
38
38
  Homepage = "https://github.com/gintsmurans/py_database_wrapper"
@@ -1,2 +0,0 @@
1
- database_wrapper==0.2.23
2
- redis