fix imports and unused variables

pull/452/head
Jens Thom 2020-11-30 12:48:01 +01:00
parent 9dd120b0cf
commit 0e4e432dc4
3 changed files with 3 additions and 2 deletions

View File

@ -709,6 +709,7 @@ class Summary(ReportParser):
verdict=verdict,
is_ioc=is_ioc,
)
yield artifact
registry = artifacts.get("registry", [])
for reg in registry:
@ -860,6 +861,7 @@ class SummaryV2(ReportParser):
artifact = DomainArtifact(
domain=domain["domain"],
sources=domain["sources"],
classifications=classifications,
is_ioc=domain["is_ioc"],
verdict=domain["verdict"],
)
@ -960,6 +962,7 @@ class SummaryV2(ReportParser):
classifications=classifications,
verdict=verdict,
)
yield artifact
ref_registry_records = artifacts.get("ref_registry_records", [])
for reg in self._resolve_refs(ref_registry_records):

View File

@ -1,4 +1,3 @@
from . import _vmray # noqa
import os
import sys

View File

@ -1,4 +1,3 @@
from . import _vmray # noqa
import os
import sys
sys.path.append('{}/lib'.format('/'.join((os.path.realpath(__file__)).split('/')[:-3])))