From 2da912fad6f7383642795620886cf7322d779065 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 7 May 2021 13:23:06 +0300 Subject: [PATCH] small correction --- bin/salome_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.2