-# Copyright (C) 2007-2021 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2022 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
def __del__(self):
port = os.getenv('NSPORT')
import killSalomeWithPort
- killSalomeWithPort.killMyPort(port)
+ if port:
+ killSalomeWithPort.killMyPort(port)
return
pass