From 3b54fab9e068466d7752ff90d8bafaa38c8a24e7 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 25 Oct 2009 07:34:07 -0400 Subject: [PATCH] remove the exception handler in kill_hud() i think sqlcoder put it in - it doesn't help because the exception isn't a python exception, it's a GTK exception. (looks like a bug in GTK.. not that they'll ever acknowledge anything) --- pyfpdb/HUD_main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 77d8312d..8fd032db 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -116,11 +116,7 @@ class HUD_main(object): # called by an event in the HUD, to kill this specific HUD if table in self.hud_dict: self.hud_dict[table].kill() - try: - # throws exception in windows sometimes (when closing using main_window menu?) - self.hud_dict[table].main_window.destroy() - except: - pass + self.hud_dict[table].main_window.destroy() self.vb.remove(self.hud_dict[table].tablehudlabel) del(self.hud_dict[table]) self.main_window.resize(1,1)