Skip to content

Commit 92908dc

Browse files
committed
Minor style change and code cleanup
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent 1857855 commit 92908dc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

vulnerabilities/import_runner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import dataclasses
2525
import datetime
2626
import logging
27-
from itertools import chain
2827
from typing import Dict
2928
from typing import List
3029
from typing import Set
@@ -170,8 +169,7 @@ def _process_added_advisories(data_source: DataSource) -> None:
170169

171170
vulnerabilities = _insert_vulnerabilities_and_references(batch)
172171

173-
_bulk_insert_impacted_and_resolved_packages(
174-
batch, vulnerabilities, impacted, resolved)
172+
_bulk_insert_impacted_and_resolved_packages(batch, vulnerabilities, impacted, resolved)
175173
except (DataError, RuntimeError) as e:
176174
# FIXME This exception might happen when the max. length of a DB column is exceeded.
177175
# Skipping an entire batch because one version number might be too long is obviously a

0 commit comments

Comments
 (0)