From 970b88349b482ec6e321f4bbc9f2fd88981d3482 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Tue, 12 Oct 2010 02:23:56 -0400 Subject: [PATCH] hud doesn't crash when mixing cash/tourney --- pyfpdb/TableWindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/TableWindow.py b/pyfpdb/TableWindow.py index 31a94e3c..ec694c73 100644 --- a/pyfpdb/TableWindow.py +++ b/pyfpdb/TableWindow.py @@ -184,7 +184,11 @@ class Table_Window(object): if new_title is None: return False - mo = re.search(self.tableno_re, new_title) + try: + mo = re.search(self.tableno_re, new_title) + except AttributeError: #'Table' object has no attribute 'tableno_re' + return False + if mo is not None: #print "get_table_no: mo=",mo.groups() return mo.group(1)