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]