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:
parent
a7163f5f8c
commit
c7342e4b0f
|
@ -253,7 +253,7 @@ class HUD_main(object):
|
||||||
tablewindow.max = max
|
tablewindow.max = max
|
||||||
tablewindow.site = site_name
|
tablewindow.site = site_name
|
||||||
# Test that the table window still exists
|
# 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)
|
self.create_HUD(new_hand_id, tablewindow, temp_key, max, poker_game, type, stat_dict, cards)
|
||||||
else:
|
else:
|
||||||
sys.stderr.write('Table "%s" no longer exists\n', table_name)
|
sys.stderr.write('Table "%s" no longer exists\n', table_name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user