From a3e85b72073f82b4fcf2122abee9f12956c1e14a Mon Sep 17 00:00:00 2001 From: spasaintk Date: Fri, 28 Feb 2020 00:33:38 +0100 Subject: [PATCH] Update vulnwhisp.py Code triggers a crash: ERROR:root:main:local variable 'vw' referenced before assignment ERROR: local variable 'vw' referenced before assignment Proposed fix deals with the issue. After fix: INFO:vulnWhispererOpenVAS:process_openvas_scans:Processing complete --- vulnwhisp/vulnwhisp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulnwhisp/vulnwhisp.py b/vulnwhisp/vulnwhisp.py index 97158e4..a2c9676 100755 --- a/vulnwhisp/vulnwhisp.py +++ b/vulnwhisp/vulnwhisp.py @@ -1318,9 +1318,9 @@ class vulnWhisperer(object): self.exit_code += vw.process_web_assets() elif self.profile == 'openvas': - vw_openvas = vulnWhispererOpenVAS(config=self.config) + vw = vulnWhispererOpenVAS(config=self.config) if vw: - self.exit_code += vw_openvas.process_openvas_scans() + self.exit_code += vw.process_openvas_scans() elif self.profile == 'tenable': vw = vulnWhispererNessus(config=self.config,