Changeset 3982

Show
Ignore:
Timestamp:
03/22/08 02:31:08 (8 months ago)
Author:
ed
Message:

Enhanced the error-trapping code to support AttributeErrors?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r3955 r3982  
    16701670        try: 
    16711671            self.CurrentForm.onRunDesign(evt) 
     1672        except AttributeError, e: 
     1673            dabo.ui.stop(_("Attribute Error: %s\nCode: %s") % (e.message, e.text.strip()), 
     1674                    _("Attribute Error")) 
    16721675        except StandardError, e: 
    16731676            dabo.ui.stop(_("Compilation Error: %s\nCode: %s") % (e.msg, e.text.strip()),