From 1a0406fdb2b6282da5a19dc0dfa87190811ba38f Mon Sep 17 00:00:00 2001 From: pemontto Date: Mon, 29 Apr 2019 16:20:07 +0100 Subject: [PATCH] Fix indents --- vulnwhisp/frameworks/nessus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulnwhisp/frameworks/nessus.py b/vulnwhisp/frameworks/nessus.py index 8c855f9..3a56726 100755 --- a/vulnwhisp/frameworks/nessus.py +++ b/vulnwhisp/frameworks/nessus.py @@ -79,7 +79,7 @@ class NessusAPI(object): self.api_keys = True self.session.headers['X-ApiKeys'] = 'accessKey={}; secretKey={}'.format(self.access_key, self.secret_key) else: - self.login() + self.login() self.scans = self.get_scans() self.scan_ids = self.get_scan_ids() @@ -156,7 +156,7 @@ class NessusAPI(object): try: file_id = req['file'] if not self.api_keys: - token_id = req['token'] if 'token' in req else req['temp_token'] + token_id = req['token'] if 'token' in req else req['temp_token'] except Exception as e: self.logger.error('{}'.format(str(e))) self.logger.info('Downloading file id {}'.format(str(file_id)))