Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 16, 2023
1 parent b9c9c57 commit 327028a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/metadata/set_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ def set_meta(new_dataset_instance, file_dict):
with open(path / "outputs" / "tool_stdout", "rb") as f:
task_stdout = unicodify(f.read(MAX_STDIO_READ_BYTES), strip_null=True)
if task_stdout:
tool_stdout = "%s[%s stdout]\n%s\n" % (tool_stdout, path.name, task_stdout)
tool_stdout = "{}[{} stdout]\n{}\n".format(tool_stdout, path.name, task_stdout)
with open(path / "outputs" / "tool_stderr", "rb") as f:
task_stderr = unicodify(f.read(MAX_STDIO_READ_BYTES), strip_null=True)
if task_stderr:
tool_stderr = "%s[%s stderr]\n%s\n" % (tool_stderr, path.name, task_stderr)
tool_stderr = "{}[{} stderr]\n{}\n".format(tool_stderr, path.name, task_stderr)
else:
wdc = os.listdir(tool_job_working_directory)
odc = os.listdir(outputs_directory)
Expand Down Expand Up @@ -346,7 +346,7 @@ def set_meta(new_dataset_instance, file_dict):
input_ext=input_ext,
)
collect_dynamic_outputs(job_context, output_collections)
except MaxDiscoveredFilesExceededError as e:
except MaxDiscoveredFilesExceededError:
final_job_state = Job.states.ERROR
job_messages.append(
{
Expand Down
1 change: 0 additions & 1 deletion lib/galaxy/tool_util/output_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
List,
Tuple,
TYPE_CHECKING,
Union
)

from galaxy.tool_util.parser.stdio import StdioErrorLevel
Expand Down

0 comments on commit 327028a

Please sign in to comment.