Changeset 4210

Show
Ignore:
Timestamp:
06/27/2008 06:23:07 PM (2 months ago)
Author:
ed
Message:

Changed the exception class caught in _setKeyValue().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dControlItemMixin.py

    r4186 r4210  
    222222                    try: 
    223223                        self.setSelection(self.Keys.index(key)) 
    224                     except IndexError: 
     224                    except ValueError: 
    225225                        # No such key; write an info message, but otherwise ignore it. 
    226226                        dabo.infoLog.write(_("Key '%s' not found") % key)