summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2015-01-07 02:05:08 +0100
committerjomo <github@jomo.tv>2015-01-07 02:05:08 +0100
commitae261d3026207586c0a2043aca87aca122c047cc (patch)
treecb2b5b7342ef43fdb7efecd06252d829c4d1793f /check.py
parent8129bf5fd4e314b62930759a1fa115f5bea2b198 (diff)
fix error on offline players
Diffstat (limited to 'check.py')
-rw-r--r--check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.py b/check.py
index 3c634ed..368bb6a 100644
--- a/check.py
+++ b/check.py
@@ -13,7 +13,7 @@ def ip_info(player):
if player.isOnline():
return json.load(urllib2.urlopen("http://ipinfo.io%s/json" % str(player.getAddress().getAddress())))
else:
- return None
+ return {}
# receive first join date based on the player data (may not be accurate)