From 48e0cbe8cddbf189c218cb73c7c00fa16d8f8d7f Mon Sep 17 00:00:00 2001 From: steffen123 Date: Thu, 19 Aug 2010 23:17:58 +0200 Subject: [PATCH] HUD: add error handler for error reported by phenixrising --- pyfpdb/Hud.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 0fdf314f..c394108c 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -525,7 +525,10 @@ class Hud: def debug_stat_windows(self, *args): # print self.table, "\n", self.main_window.window.get_transient_for() for w in self.stat_windows: - print self.stat_windows[w].window.window.get_transient_for() + try: + print self.stat_windows[w].window.window.get_transient_for() + except AttributeError: + print "this window doesnt have get_transient_for" def save_layout(self, *args): new_layout = [(0, 0)] * self.max