Explorar el Código

Changed exception handling when disposing engine

ogert hace 5 años
padre
commit
bd193e5cea
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      cdplib/db_handlers/SQLHandler.py

+ 2 - 1
cdplib/db_handlers/SQLHandler.py

@@ -106,7 +106,8 @@ class SQLHandler:
 
 
     def __del__(self):
-        self.dispose_engine()
+        print('Engine shouldve been disposed')
+        #self.dispose_engine()
 
     @property
     def _connection_params(self) -> dict: