Skip to content

Commit

Permalink
test revert Operator.__del__
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo-Baussart-ANSYS committed Dec 6, 2024
1 parent 9e28ee6 commit 0206f24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ansys/dpf/core/dpf_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,10 +736,8 @@ def default_config(name, server=None):

def __del__(self):
try:
if hasattr(self, "_deleter_func"):
obj = self._deleter_func[1](self)
if obj is not None:
self._deleter_func[0](obj)
if self._internal_obj is not None:
self._deleter_func[0](self._deleter_func[1](self))
except:
warnings.warn(traceback.format_exc())

Expand Down

0 comments on commit 0206f24

Please sign in to comment.