Skip to content

Commit

Permalink
Merge pull request #562 from DocArmoryTech/patch-1
Browse files Browse the repository at this point in the history
Fixed __query_virustotal return type
  • Loading branch information
Rafiot committed Apr 6, 2020
2 parents 12e05fd + 4ee4db1 commit 9aab22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymisp/tools/vtreportobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __query_virustotal(self, apikey: str, resource: str):
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)

0 comments on commit 9aab22f

Please sign in to comment.