Merge pull request #562 from DocArmoryTech/patch-1

Fixed __query_virustotal return type
pull/565/head
Raphaël Vinot 2020-04-06 12:59:52 +02:00 committed by GitHub
commit 9aab22f03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class VTReportObject(AbstractMISPObjectGenerator):
report = requests.get(url, params=params)
report_json = report.json()
if report_json["response_code"] == 1:
return report
return report_json
else:
error_msg = "{}: {}".format(resource, report_json["verbose_msg"])
raise InvalidMISPObject(error_msg)