From: rnv Date: Fri, 7 May 2021 10:23:06 +0000 (+0300) Subject: small correction X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvsr%2F17978;p=modules%2Fkernel.git small correction --- diff --git a/bin/salome_utils.py b/bin/salome_utils.py index 75770ea0d..ccd2fef2b 100644 --- a/bin/salome_utils.py +++ b/bin/salome_utils.py @@ -451,7 +451,7 @@ def getOmniNamesPid(port): """ processes = {p.info['pid']: p.info['name'] for p in psutil.process_iter(['pid', 'name'])} return next((c.pid for c in psutil.net_connections(kind='inet') \ - if c.laddr.port == port and processes.get(c.pid)).startswith('omniNames')), None) + if c.laddr.port == port and processes.get(c.pid).startswith('omniNames')), None) # -- def killOmniNames(port):