From 91bcc484f5be9f93a6ad499d151891c9d7bbcb67 Mon Sep 17 00:00:00 2001 From: Akihiko Kuroda Date: Thu, 25 Jul 2024 10:17:00 -0400 Subject: [PATCH] lint --- client/qiskit_serverless/core/job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/qiskit_serverless/core/job.py b/client/qiskit_serverless/core/job.py index b58d05332..2e3894977 100644 --- a/client/qiskit_serverless/core/job.py +++ b/client/qiskit_serverless/core/job.py @@ -484,7 +484,7 @@ def logs(self, job_id: str, log_type: Optional[str] = None): request=lambda: requests.get( f"{self.host}/api/{self.version}/jobs/{job_id}/logs/", headers={"Authorization": f"Bearer {self._token}"}, - params={"log_type": type}, + params={"log_type": log_type}, timeout=REQUESTS_TIMEOUT, ) ) @@ -643,7 +643,7 @@ def logs( # pylint: disable=unused-argument self, log_type: Optional[str] = None ) -> str: """Returns logs of the job.""" - return self._job_client.logs(self.job_id, type) + return self._job_client.logs(self.job_id, log_type) def filtered_logs(self, log_type: Optional[str] = None, **kwargs) -> str: """Returns logs of the job.