Skip to content

Commit

Permalink
clan: Fixed unhandled exception caused by recent changes to self.play…
Browse files Browse the repository at this point in the history
…er() behavior.
  • Loading branch information
MinoMino committed Jan 28, 2016
1 parent 591973e commit c69b4b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clan.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ def handle_set_configstring(self, index, value):
if not value: # Player disconnected?
return
elif 529 <= index < 529 + 64:
player = self.player(index - 529)
if not player:
try:
player = self.player(index - 529)
except minqlx.NonexistentPlayerError:
# This happens when someone connects, but the player
# has yet to be properly initialized. We can safely
# skip it because the clan will be set later.
Expand Down

0 comments on commit c69b4b5

Please sign in to comment.