From 21b859f244931770385b62bc9fb204f61ee2a7bc Mon Sep 17 00:00:00 2001 From: eblade Date: Fri, 31 Jul 2009 00:15:25 -0400 Subject: [PATCH] remove error handler on hudcache rebuild menu, if it errors we should know about it --- pyfpdb/fpdb.py | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pyfpdb/fpdb.py b/pyfpdb/fpdb.py index 48f0202c..570143cf 100755 --- a/pyfpdb/fpdb.py +++ b/pyfpdb/fpdb.py @@ -246,19 +246,16 @@ class fpdb: def dia_recreate_hudcache(self, widget, data=None): if self.obtain_global_lock(): - try: - dia_confirm = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_WARNING, buttons=(gtk.BUTTONS_YES_NO), message_format="Confirm recreating HUD cache") - diastring = "Please confirm that you want to re-create the HUD cache." - dia_confirm.format_secondary_text(diastring) - - response = dia_confirm.run() - dia_confirm.destroy() - if response == gtk.RESPONSE_YES: - self.db.rebuild_hudcache() - elif response == gtk.REPSONSE_NO: - print 'User cancelled rebuilding hud cache' - except: - pass + dia_confirm = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_WARNING, buttons=(gtk.BUTTONS_YES_NO), message_format="Confirm recreating HUD cache") + diastring = "Please confirm that you want to re-create the HUD cache." + dia_confirm.format_secondary_text(diastring) + + response = dia_confirm.run() + dia_confirm.destroy() + if response == gtk.RESPONSE_YES: + self.db.rebuild_hudcache() + elif response == gtk.REPSONSE_NO: + print 'User cancelled rebuilding hud cache' self.release_global_lock()