Commit 6408a089 authored by Unknown's avatar Unknown

! on exit not close connection
parent 5182f255
Pipeline #62824 failed with stage
in 22 seconds
......@@ -103,7 +103,8 @@ class IdMapperReader(metaclass=ABCMeta):
class IdMapperTntReader(IdMapperReader):
def __exit__(self, exc_type, exc_val, exc_tb):
self._connector.close()
# self._connector.close()
pass
def __init__(self, connector, mapping_name, cid, max_items=MAX_DB_ITEMS):
"""
......@@ -229,7 +230,8 @@ class IdMapperTntWriter(IdMapperWriter):
raise DbMapperError(exc=e)
def __exit__(self, exc_type, exc_val, exc_tb):
self._connector.close()
# self._connector.close()
pass
def write(self, data):
try:
......
......@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='idmapper',
version='0.1.6',
version='0.1.7',
packages=['idmapper', ],
url='https://gitlab.itnap.ru/open-source/py-id-mapper',
license='',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment