From b6138d232c67fb8f6eeaa697f509312d1eef21eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B8=E8=8A=B3=E6=BA=90?= Date: Thu, 27 Oct 2022 19:58:53 +0800 Subject: [PATCH] fix a bug in postgresql importer I think `pass` on line 83 should be `continue`, or it will cause an exception on line 112 where `cve_id` is referenced but not defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 司芳源 --- vulnerabilities/importers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnerabilities/importers/postgresql.py b/vulnerabilities/importers/postgresql.py index edc85e464..b301d7d73 100644 --- a/vulnerabilities/importers/postgresql.py +++ b/vulnerabilities/importers/postgresql.py @@ -80,7 +80,7 @@ def to_advisories(data): # This is for the anomaly in https://www.postgresql.org/support/security/8.1/ 's # last entry except IndexError: - pass + continue references = [] vector_link_tag = severity_score_col.find("a")