From 1640ab3cfc3a4dee204e9e5180aa587c9464810d Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Mon, 17 Aug 2009 21:51:13 +0100 Subject: [PATCH] attempt to stop a KeyError problem (problem patching up the symptoms rather than fixing the cause) --- pyfpdb/Mucked.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Mucked.py b/pyfpdb/Mucked.py index 3bd84cb7..c059c703 100755 --- a/pyfpdb/Mucked.py +++ b/pyfpdb/Mucked.py @@ -450,7 +450,9 @@ class Flop_Mucked(Aux_Seats): self.displayed = True if i != "common": id = self.get_id_from_seat(i) - self.m_windows[i].eb.set_tooltip_text(self.hud.stat_dict[id]['screen_name']) + # 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): """Prepare and show the mucked cards."""