Protection from crash; display error

svn: r14377
This commit is contained in:
Doug Blank 2010-02-15 00:55:20 +00:00
parent 07cfe16295
commit ea74046a18

View File

@ -929,7 +929,13 @@ class ViewManager(CLIManager):
# create view page and add to category notebook # create view page and add to category notebook
page.define_actions() page.define_actions()
try:
page_display = page.get_display() page_display = page.get_display()
except:
import traceback
print "ERROR: '%s' failed to create view" % pdata.name
traceback.print_exc()
continue
page_display.show_all() page_display.show_all()
page.post() page.post()
page_no = self.notebook_cat[-1].append_page(page_display, page_no = self.notebook_cat[-1].append_page(page_display,