From ae261d3026207586c0a2043aca87aca122c047cc Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 7 Jan 2015 02:05:08 +0100 Subject: [PATCH] fix error on offline players --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)