fix error on offline players

This commit is contained in:
jomo
2015-01-07 02:05:08 +01:00
parent 8129bf5fd4
commit ae261d3026

View File

@@ -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)