Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / testme.py
index 94e8622d6535c2eee51f02abfbd0089fde805139..e82e5f1cb2bcecc2e8adbe05eba2dcd7f3a6e269 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2023  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -62,7 +62,8 @@ class SalomeSession(object):
     def __del__(self):
         port = os.getenv('NSPORT')
         import killSalomeWithPort
-        killSalomeWithPort.killMyPort(port)
+        if port:
+             killSalomeWithPort.killMyPort(port)
         return
     pass