ioccheck icon indicating copy to clipboard operation
ioccheck copied to clipboard

HTML reports are not generated.

Open ranguli opened this issue 4 years ago • 0 comments

Expected behavior is for a .html file to be created in the current directory when --report HTML is passed as an argument.

This if statement in iocheck/cli/__init__.py fails.

if isinstance(ioc, Hash):
    html_report = HTMLHashReport(ioc, templates_dir)
elif isinstance(ioc, IP):
    html_report = HTMLIPReport(ioc, templates_dir)
html_report.generate()

Causing an error where html_report is referenced before assignment.

ranguli avatar Sep 24 '21 23:09 ranguli