Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Ap6pack_malwar /src /malwar /integrations /exceptions.py
| """Exceptions raised by Malwar integrations.""" | |
| from __future__ import annotations | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from malwar.models.finding import Finding | |
| class MalwarBlockedError(Exception): | |
| """Raised when scanned content exceeds the configured threat threshold. | |
| Attributes | |
| ---------- | |
| verdict : str | |
| The scan verdict that triggered the block (e.g. ``"MALICIOUS"``). | |
| risk_score : int | |
| Numeric risk score (0-100) from the scan. | |
| findings : list[Finding] | |
| The individual findings detected by the scan. | |
| scan_id : str | |
| Unique identifier for the scan that produced the block. | |
| """ | |
| def __init__( | |
| self, | |
| message: str, | |
| *, | |
| verdict: str, | |
| risk_score: int, | |
| findings: list[Finding], | |
| scan_id: str, | |
| ) -> None: | |
| super().__init__(message) | |
| self.verdict = verdict | |
| self.risk_score = risk_score | |
| self.findings = findings | |
| self.scan_id = scan_id | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- 64c03e864077d9d21f7ec4f55ecdaf565a2184fa5c1ba0591ca21bc564844d84
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.