Skip to content

Commit

Permalink
Merge pull request #30 from lr1ne/patch-1
Browse files Browse the repository at this point in the history
mini shitcode
  • Loading branch information
Bytezz committed May 8, 2024
2 parents 954a4c9 + 7d72ac6 commit d183cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_ip_info(ip):
ip = ip.strip()
result = {}

if ip != "":
if ip:
result = json.loads(urlopen("http://ip-api.com/json/{}".format(ip)).read())

return result
Expand Down

0 comments on commit d183cc7

Please sign in to comment.