Commit f030f13f authored by sumpfralle's avatar sumpfralle

report a failure if problems occoured during UI file initialization


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1140 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f43f2b5f
......@@ -54,7 +54,9 @@ class PluginBase(object):
self.gui = gtk.Builder()
try:
self.gui.add_from_file(gtk_build_file)
except RuntimeError:
except RuntimeError, err_msg:
self.log.info("Failed to import UI file (%s): %s" % \
(gtk_build_file, err_msg))
self.gui = None
for key in self.ICONS:
icon_location = pycam.Utils.locations.get_ui_file_location(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment