Changeset 2203

Show
Ignore:
Timestamp:
02/06/08 23:06:12 (3 months ago)
Author:
arj..@yirdis.nl
Message:

Prevent property editor from throwing exceptions when creating property windows. Errors are reported on the console, but should not break the normal flow of execution.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/ui/propertyeditor.py

    r2193 r2203  
    4242        last_tab = self._last_tab 
    4343        for name, adapter in component.getAdapters([item,], IPropertyPage): 
    44             self.notebook.prepend_page(adapter.construct(), gtk.Label(name)) 
     44            try: 
     45                self.notebook.prepend_page(adapter.construct(), gtk.Label(name)) 
     46            except Exception, e: 
     47                log.error('Could not construct property page for ' + name, e) 
    4548        self.notebook.show_all() 
    4649