Salome HOME
venv directory is configured in config_appli.xml file
[modules/kernel.git] / bin / nameserver.py
index 0b8e41c65be5762e3c70de7258abbb2b14486b34..77d04f802053a3b4690884eee13049e1477f7c04 100644 (file)
@@ -63,7 +63,7 @@ class NamingServer(Server):
         upath = os.path.join(upath, "omniNames_%s"%(aPort))
         try:
           os.mkdir(upath)
-        except:
+        except Exception:
           # print("Can't create " + upath)
           pass
 
@@ -71,7 +71,7 @@ class NamingServer(Server):
         for fname in os.listdir(upath):
           try:
             os.remove(upath + "/" + fname)
-          except:
+          except Exception:
             pass
         #os.system("rm -f " + upath + "/omninames* " + upath + "/dummy " + upath + "/*.log")