removed duplicated function

This commit is contained in:
iLLiCiTiT 2020-07-01 16:11:00 +02:00
parent d4dc019919
commit 034e4237fe

View file

@ -49,17 +49,6 @@ def check_active_table(func):
return decorated
def check_active_table(func):
"""Handling auto reconnect in 3 retry times"""
@functools.wraps(func)
def decorated(obj, *args, **kwargs):
if not obj.active_table:
raise NotActiveTable("Active table is not set. (This is bug)")
return func(obj, *args, **kwargs)
return decorated
class DbConnector:
log = logging.getLogger(__name__)
timeout = 1000