* src/plugins/PatchNames.py: Adapt to new wm.

* src/PluginUtils/_Tool.py (gui_tool): handle exception.


svn: r6449
This commit is contained in:
Alex Roitman
2006-04-26 05:09:44 +00:00
parent 1d74561459
commit bdf5731502
3 changed files with 15 additions and 13 deletions

View File

@ -44,6 +44,7 @@ import const
import Utils
import GenericFilter
import NameDisplay
import Errors
from _Options import *
#-------------------------------------------------------------------------
@ -239,6 +240,8 @@ def gui_tool(dbstate, uistate, tool_class, options_class, translated_name,
try:
tool_class(dbstate, uistate, options_class, name, callback)
except Errors.WindowActiveError:
pass
except:
log.error("Failed to start tool.", exc_info=True)