Remove unused variable

This commit is contained in:
Labrys of Knossos 2018-12-31 12:23:01 -05:00
parent 93ec74f1c7
commit a289eef88e
5 changed files with 0 additions and 10 deletions

View file

@ -745,7 +745,6 @@ def initialize(section=None):
if codec in codec_alias:
extra = [item for item in codec_alias[codec] if item not in ACODEC3_ALLOW]
ACODEC3_ALLOW.extend(extra)
codec_alias = {} # clear memory
PASSWORDSFILE = CFG['passwords']['PassWordFile']

View file

@ -221,7 +221,6 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
res = json.loads(r.content)
scan_id = int(res['id'])
logger.debug('Scan started with id: {0}'.format(scan_id), section)
started = True
except Exception as e:
logger.warning('No scan id was returned due to: {0}'.format(e), section)
scan_id = None

View file

@ -117,18 +117,12 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
status_code=1,
)
success = False
queued = False
started = False
try:
res = json.loads(r.content)
scan_id = int(res['id'])
logger.debug('Scan started with id: {0}'.format(scan_id), section)
started = True
except Exception as e:
logger.warning('No scan id was returned due to: {0}'.format(e), section)
scan_id = None
started = False
return ProcessResult(
message='{0}: Failed to post-process - Unable to start scan'.format(section),
status_code=1,

View file

@ -87,7 +87,6 @@ def auto_fork(section, input_category):
r = []
if r and r.ok:
if apikey:
optional_parameters = []
try:
json_data = r.json()
except ValueError:

View file

@ -148,7 +148,6 @@ def rename_script(dirname):
def par2(dirname):
newlist = []
sofar = 0
parfile = ''
objects = []