blackdotsh / getIPIntel

IP Intelligence is a free Proxy VPN TOR and Bad IP detection tool to prevent Fraud, stolen content, and malicious users. Block proxies, VPN connections, web host IPs, TOR IPs, and compromised systems with a simple API. GeoIP lookup available.
http://getipintel.net
309 stars 50 forks source link

change int to float in result.content #7

Closed eclecticmiraclecat closed 6 years ago

blackdotsh commented 6 years ago

Values < 0 will always be error codes so int cast is correct as we provide error codes in integer format only.

eclecticmiraclecat commented 6 years ago

really sorry sir, i understand now but i'm getting this error though

ValueError: invalid literal for int() with base 10: b'0.58499997854233'

blackdotsh commented 6 years ago

Weird, the version of python I'm using isn't throwing those errors at all. However, making the change to float doesn't hurt so I'll merge this change. Thanks.