Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions pyflow/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,7 @@ def _add_exit_hook(self, hook):
if isinstance(hook, str):
hook = [hook]
for hk in hook:
if hk not in self._exit_hook:
self._exit_hook.append(hk)
self._exit_hook.append(hk)
# Check if properly initialised
if "_nodes" in self.__dict__:
for chld in self.executable_children:
Expand Down Expand Up @@ -1206,8 +1205,7 @@ def _add_exit_hook(self, hook):
if isinstance(hook, str):
hook = [hook]
for hk in hook:
if hk not in self._exit_hook:
self._exit_hook.append(hk)
self._exit_hook.append(hk)
# Check if properly initialised
if "_nodes" in self.__dict__:
for chld in self.executable_children:
Expand Down Expand Up @@ -1405,8 +1403,7 @@ def _add_exit_hook(self, hook: str):
if isinstance(hook, str):
hook = [hook]
for hk in hook:
if hk not in self._exit_hook:
self._exit_hook.append(hk)
self._exit_hook.append(hk)

def generate_script(self):
"""
Expand Down
Loading