Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jan 17, 2025
1 parent e3bb849 commit 8cb3dcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyiron_base/project/delayed.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def pull(self):
return self.get_python_result()
elif self._output_file is not None:
return self.get_file_result()
elif self._list_index is not None:
elif isinstance(self._result, list) and self._list_index is not None:
return self._result[self._list_index]
elif isinstance(self._result, dict) and self._list_index is not None:
return self._result[str(self._list_index)]
else:
return self._result
Expand Down

0 comments on commit 8cb3dcb

Please sign in to comment.