Skip to content

Commit

Permalink
check callable
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Apr 30, 2024
1 parent f7997db commit cf83b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compas_eve/ghpython/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _long_running_task_wrapper(worker):

def dispose(self):
"""Invoked when the worker is being disposed."""
if self.dispose_function:
if callable(self.dispose_function):
self.dispose_function(self)

def set_internal_state_to_working(self):
Expand Down

0 comments on commit cf83b16

Please sign in to comment.