Explorar o código

Changed exception handling when disposing engine

ogert %!s(int64=5) %!d(string=hai) anos
pai
achega
bd193e5cea
Modificáronse 1 ficheiros con 2 adicións e 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: