diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index 64f1a9d9..0fc90d23 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -102,7 +102,7 @@ class BaseNode: def __del__(self): - if self._temporary_directory is not None: + if hasattr(self, "_temporary_directory") and self._temporary_directory is not None: if os.path.exists(self._temporary_directory): shutil.rmtree(self._temporary_directory, ignore_errors=True)