Преглед изворни кода

Changed exception handling when disposing engine

ogert пре 5 година
родитељ
комит
bd193e5cea
1 измењених фајлова са 2 додато и 1 уклоњено
  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: