Skip to content

Commit

Permalink
Catch some additional UUID lookup errors from urllib2
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Apr 10, 2014
1 parent ae586a7 commit 8e5944d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overviewer_core/aux_files/genPOI.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def handlePlayers(rset, render, worldpath):
profile = json.loads(urllib2.urlopen(UUID_LOOKUP_URL + playername.replace('-','')).read())
if 'name' in profile:
playername = profile['name']
except ValueError:
except (ValueError, urllib2.URLError):
logging.warning("Unable to get player name for UUID %s", playername)
if isSinglePlayer:
playername = 'Player'
Expand Down

0 comments on commit 8e5944d

Please sign in to comment.