diff --git a/python/bullmq/scripts.py b/python/bullmq/scripts.py index b55aa4138c..e44d25cd81 100644 --- a/python/bullmq/scripts.py +++ b/python/bullmq/scripts.py @@ -574,7 +574,7 @@ def finishedErrors(self, code: int, jobId: str, command: str, state: str) -> Typ elif code == ErrorCode.JobLockMismatch.value: return TypeError(f"Lock mismatch for job {jobId}. Cmd {command} from {state}") elif code == ErrorCode.ParentJobCannotBeReplaced.value: - return TypeError(f"The parent job of job {jobId} cannot be replaced. {command}") + return TypeError(f"The parent job {jobId} cannot be replaced. {command}") else: return TypeError(f"Unknown code {str(code)} error for {jobId}.{command}")