Skip to content

Commit

Permalink
View: minor fix in destructor (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstriebel authored Aug 2, 2022
1 parent 8afa9ff commit 862eadc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webknossos/webknossos/dataset/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,8 @@ def _array(self) -> None:
self._cached_array = None

def __del__(self) -> None:
del self._cached_array
if hasattr(self, "_cached_array"):
del self._cached_array

def __getstate__(self) -> Dict[str, Any]:
d = dict(self.__dict__)
Expand Down

0 comments on commit 862eadc

Please sign in to comment.