attempt to stop a KeyError problem (problem patching up the symptoms rather than fixing the cause)

This commit is contained in:
sqlcoder 2009-08-17 21:51:13 +01:00
parent d905b6e780
commit 1640ab3cfc

View File

@ -450,6 +450,8 @@ class Flop_Mucked(Aux_Seats):
self.displayed = True
if i != "common":
id = self.get_id_from_seat(i)
# sc: had KeyError here with new table so added id != None test as a guess:
if id != None:
self.m_windows[i].eb.set_tooltip_text(self.hud.stat_dict[id]['screen_name'])
def update_gui(self, new_hand_id):