Skip to content
This repository has been archived by the owner on Dec 16, 2017. It is now read-only.

Commit

Permalink
Interpret results correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Maxwell committed Aug 6, 2014
1 parent 1bf5974 commit f4dde04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maltrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def main():
for chunk in chunker(reqs, 32):
malware_downloads = grequests.map(chunk)
for each in malware_downloads:
if each.status_code != 200:
if not each or each.status_code != 200:
continue
md5 = save_malware(each, cfg['dumpdir'])
if 'vxcage' in cfg:
Expand All @@ -281,7 +281,7 @@ def main():
upload_cuckoo(md5)
if 'viper' in cfg:
upload_viper(each)
past_urls.add(each[0])
past_urls.add(each.url)


print "Completed downloads"
Expand Down

0 comments on commit f4dde04

Please sign in to comment.