Skip to content

Commit

Permalink
Merge branch 'Bytezz:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrambled777 authored May 11, 2024
2 parents 74a1fea + 695bb7d commit 432a709
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/io.github.bytezz.IPLookup.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
<url type="vcs-browser">https://github.com/bytezz/iplookup-gtk</url>
<url type="translate">https://github.com/Bytezz/IPLookup-gtk/tree/main/po</url>

<branding>
<color type="primary" scheme_preference="light">#99c1f1</color>
<color type="primary" scheme_preference="dark">#123d72</color>
</branding>

<custom>
<value key="Purism::form_factor">mobile</value>
</custom>
Expand Down
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 432a709

Please sign in to comment.