diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index b6d99043ebad..0bedace7b3d5 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -1796,7 +1796,7 @@ def fail(message=job.info, exception=None): else: # Prior to fail we need to set job.state job.set_state(final_job_state) - return self.fail(f"Job {job.id}'s output dataset(s) could not be read") + return fail(f"Job {job.id}'s output dataset(s) could not be read") job_context = ExpressionContext(dict(stdout=job.stdout, stderr=job.stderr)) if extended_metadata: