Skip to content

Commit

Permalink
Exception when None
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Sep 28, 2024
1 parent 8f44370 commit bf9fe2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pysqa/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ def __init__(
execute_command: callable = execute_command,
):
self._commands = get_queue_commands(queue_type=queue_type)
self._submission_template = getattr(
importlib.import_module(queue_type_dict[queue_type]["module_name"]),
"template",
)
if queue_type_dict[queue_type]["module_name"] is not None:
self._submission_template = getattr(
importlib.import_module(queue_type_dict[queue_type]["module_name"]),
"template"
)
self._execute_command_function = execute_command

def submit_job(
Expand Down

0 comments on commit bf9fe2b

Please sign in to comment.