From d8cf53a2bd1c813af27972d29e8bfa40d4b5be66 Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Sat, 18 Dec 2010 10:43:56 -0500 Subject: [PATCH] Don't fail on windows that don't have names. --- pyfpdb/OSXTables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/OSXTables.py b/pyfpdb/OSXTables.py index e99d53e1..8baa6aec 100644 --- a/pyfpdb/OSXTables.py +++ b/pyfpdb/OSXTables.py @@ -49,7 +49,7 @@ class Table(Table_Window): WinListDict = CGWindowListCreateDescriptionFromArray(WinList) for d in WinListDict: - if re.search(self.search_string, d[kCGWindowName], re.I): + if re.search(self.search_string, d.get(kCGWindowName, ""), re.I): title = d[kCGWindowName] if self.check_bad_words(title): continue self.number = d[kCGWindowNumber]