diff options
author | jomo <github@jomo.tv> | 2015-01-07 02:05:08 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-01-07 02:05:08 +0100 |
commit | ae261d3026207586c0a2043aca87aca122c047cc (patch) | |
tree | cb2b5b7342ef43fdb7efecd06252d829c4d1793f /check.py | |
parent | 8129bf5fd4e314b62930759a1fa115f5bea2b198 (diff) |
fix error on offline players
Diffstat (limited to 'check.py')
-rw-r--r-- | check.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |