From c7342e4b0f2eec6144de8d1a8b022dfb91cc3494 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Wed, 25 Nov 2009 15:31:45 +0200 Subject: [PATCH] Test the correct attribute When testing for Tables.Table validity, we actually care about the 'number' attribute, because that gets passed around on create_HUD() --- pyfpdb/HUD_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 453a8e82..27d7eea0 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -253,7 +253,7 @@ class HUD_main(object): tablewindow.max = max tablewindow.site = site_name # Test that the table window still exists - if hasattr(tablewindow, 'name'): + if hasattr(tablewindow, 'number'): self.create_HUD(new_hand_id, tablewindow, temp_key, max, poker_game, type, stat_dict, cards) else: sys.stderr.write('Table "%s" no longer exists\n', table_name)