From 9757e5bc6b8bd5ae72ea37c40d8510f64de63244 Mon Sep 17 00:00:00 2001 From: avdata99 Date: Wed, 9 Oct 2024 14:08:20 -0300 Subject: [PATCH] Black --- clamav_service/jobs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clamav_service/jobs.py b/clamav_service/jobs.py index 3717d3e..af124d5 100644 --- a/clamav_service/jobs.py +++ b/clamav_service/jobs.py @@ -180,9 +180,13 @@ def scan(task_id, payload): response["status_text"] = STATUSES[scan_result.returncode] if scan_result.returncode == 2: - logger.error(f"Scan failed for resource {resource_id}: {response['description']}") + logger.error( + f"Scan failed for resource {resource_id}: {response['description']}" + ) raise util.JobError(json.dumps(response)) final_status_text = response["status_text"] - logger.info(f"Completed scanning {final_status_text}. Resource {resource_id}. Submitting result") + logger.info( + f"Completed scanning {final_status_text}. Resource {resource_id}. Submitting result" + ) return response