Salome HOME
Updated copyright comment
[modules/kernel.git] / src / Logger / Test / TestKiller.py
index 8118098cd3baf60e5c8081c747e1748f40026927..d45b3aab1d9297550f9cab6b6498a10365b5e224 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -37,7 +37,7 @@ def closeSalome():
         from PortManager import releasePort
         print("### release current port:", port)
         releasePort(port)
-    except:
+    except Exception:
         pass
 
 
@@ -54,7 +54,7 @@ def killNamingService():
     try:
       pid=output_com.split()[0]
       os.kill(int(pid),signal.SIGKILL)
-    except:
+    except Exception:
       print("killNamingService failed.")
 
 
@@ -68,7 +68,7 @@ def killProcess(process_id):
         print("stop process %s : %s"% (pid, cmd[0]))
         try:
             os.kill(int(pid),signal.SIGKILL)
-        except:
+        except Exception:
             print("  ---- process %s : %s inexistant"% (pid, cmd[0]))
             pass
         del process_id[pid]