Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Oct 9, 2024
1 parent ce6b8b6 commit 9757e5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions clamav_service/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9757e5b

Please sign in to comment.