Pārlūkot izejas kodu

Changed exception handling when disposing engine

ogert 4 gadi atpakaļ
vecāks
revīzija
b56f11c1b5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      cdplib/db_handlers/SQLHandler.py

+ 1 - 1
cdplib/db_handlers/SQLHandler.py

@@ -639,5 +639,5 @@ class SQLHandler:
         try:
             self._engine.dispose()
         except Exception as e:
-            self._log.error(('An error occured when trying to dispose the SQL engine. Error: {}').format(e))
+            print(('An error occured when trying to dispose the SQL engine. Error: {}').format(e))
             raise Exception(e)