From c69b4b570b59fc1eb30384632841b003f5d96466 Mon Sep 17 00:00:00 2001 From: Mino Date: Thu, 28 Jan 2016 21:41:38 +0100 Subject: [PATCH] clan: Fixed unhandled exception caused by recent changes to self.player() behavior. --- clan.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clan.py b/clan.py index 92360b8..0c07443 100644 --- a/clan.py +++ b/clan.py @@ -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.