Skip to content

Commit

Permalink
Fix error handling when a Julia kernel is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Jun 13, 2024
1 parent c70afa4 commit 4c4de21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spine_items/tool/tool_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ def prepare(self, args):
julia_args = get_julia_path_and_project(self.tool_specification.execution_settings, self._settings)
if not julia_args:
k_name = self.tool_specification.execution_settings["kernel_spec_name"]
self._logger.msg_error(f"Invalid kernel '{k_name}'. Missing resource dir or corrupted kernel.json.")
return
self._logger.msg_error.emit(f"Invalid kernel '{k_name}'. Missing resource dir or corrupted kernel.json.")
raise RuntimeError()
cmdline_args = self.tool_specification.cmdline_args + args
if self.prepare_sysimg_maker(julia_args, cmdline_args):
return
Expand Down

0 comments on commit 4c4de21

Please sign in to comment.