Skip to content

Commit

Permalink
Merge pull request #518 from presianbg/fix_threatcrowd
Browse files Browse the repository at this point in the history
[ThreatCrowd ] Fixing Unexpected Error: get() takes exactly 1 argument (2 given)
  • Loading branch information
dadokkio authored Mar 15, 2020
2 parents 0fba4d5 + a6b068f commit 42c00e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/Threatcrowd/threatcrowd_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def run(self):
threatcrowd_data_type = self.data_type if self.data_type != 'mail' else 'email'
try:
response = requests.get("{}/{}/report/".format(self.URI, threatcrowd_data_type),
{threatcrowd_data_type: self.get_data()})
params = {threatcrowd_data_type: self.get_data()})
self.report(response.json())
except Exception as e:
self.unexpectedError(e)
Expand Down

0 comments on commit 42c00e7

Please sign in to comment.