check_table_no deals with "None" passed to it

This commit is contained in:
Eric Blade 2010-09-27 07:34:25 -04:00
parent df1cd4a15d
commit c325daf7f6

View File

@ -251,7 +251,8 @@ class Table_Window(object):
result = self.get_table_no()
if result != False and result != self.table:
self.table = result
hud.main_window.emit("table_changed", hud)
if hud is not None:
hud.main_window.emit("table_changed", hud)
return True
def check_bad_words(self, title):