Skip to content

Commit 5b3ee7c

Browse files
committed
style: apply black formatting to grafana_importer
Signed-off-by: newklei <magmacicada@proton.me>
1 parent 481fb5b commit 5b3ee7c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vulnerabilities/pipelines/v2_importers/grafana_importer.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,9 @@ def parse_advisory_data(advisory: dict, purl_type: str, purl_namespace: str):
191191
# Example: ">=9.2.0 <9.2.10 >=9.3.0 <9.3.4" -> ">=9.2.0, <9.2.10, >=9.3.0, <9.3.4"
192192
normalized = re.sub(r"\s+(?=[<>!=])", ", ", raw_range.strip())
193193
try:
194-
version_range = build_range_from_github_advisory_constraint(
195-
purl_type, normalized
196-
)
194+
version_range = build_range_from_github_advisory_constraint(purl_type, normalized)
197195
except Exception as e:
198-
logger.error(
199-
"Cannot parse version range %r for %s: %s", raw_range, ghsa_id, e
200-
)
196+
logger.error("Cannot parse version range %r for %s: %s", raw_range, ghsa_id, e)
201197

202198
if version_range is None:
203199
continue

0 commit comments

Comments
 (0)