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()
This commit is contained in:
Mika Bostrom 2009-11-25 15:31:45 +02:00
parent a7163f5f8c
commit c7342e4b0f

View File

@ -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)