From 034e4237fe392f040b10c4c7c83957d3439b77a0 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 1 Jul 2020 16:11:00 +0200 Subject: [PATCH] removed duplicated function --- pype/modules/ftrack/lib/custom_db_connector.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pype/modules/ftrack/lib/custom_db_connector.py b/pype/modules/ftrack/lib/custom_db_connector.py index a734b3f80a..a55c0b15dd 100644 --- a/pype/modules/ftrack/lib/custom_db_connector.py +++ b/pype/modules/ftrack/lib/custom_db_connector.py @@ -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