Skip to content

Commit

Permalink
Merge pull request #7 from eclecticmiraclecat/master
Browse files Browse the repository at this point in the history
change int to float in result.content
  • Loading branch information
blackdotsh committed Feb 8, 2018
2 parents 3b4c7d1 + dda6292 commit ebda4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getipintel.py
Expand Up @@ -9,7 +9,7 @@ def checkIP(ip):
timeout=5.00
#if you wish to use flags or json format, edit the request below
result = requests.get("http://check.getipintel.net/check.php?ip="+ip+"&contact="+contactEmail, timeout=timeout)
if (result.status_code != 200) or (int(result.content) < 0):
if (result.status_code != 200) or (float(result.content) < 0):
sys.stderr.write("An error occured while querying GetIPIntel")
if (float(result.content) > maxProbability):
return 1;
Expand Down

0 comments on commit ebda4c7

Please sign in to comment.