# -*- 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
from PortManager import releasePort
print("### release current port:", port)
releasePort(port)
- except:
+ except Exception:
pass
try:
pid=output_com.split()[0]
os.kill(int(pid),signal.SIGKILL)
- except:
+ except Exception:
print("killNamingService failed.")
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]