Skip to content

Commit

Permalink
Revert attribute hack (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter authored Aug 21, 2024
1 parent 3ae3714 commit 7f2ea97
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions griptape/mixins/futures_executor_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ class FuturesExecutorMixin(ABC):
)

def __del__(self) -> None:
if hasattr(self, "futures_executor"):
executor = self.futures_executor
executor = self.futures_executor

if executor is not None:
self.futures_executor = None
if executor is not None:
self.futures_executor = None

executor.shutdown(wait=True)
executor.shutdown(wait=True)

0 comments on commit 7f2ea97

Please sign in to comment.