dabo Commit
Revision 4210
Date: 2008-06-27 18:23:07 -0700 (Fri, 27 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4210

Changed:
U   trunk/dabo/ui/uiwx/dControlItemMixin.py

Log:
Changed the exception class caught in _setKeyValue().


Diff:
Modified: trunk/dabo/ui/uiwx/dControlItemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dControlItemMixin.py     2008-06-28 00:56:11 UTC (rev 
4209)
+++ trunk/dabo/ui/uiwx/dControlItemMixin.py     2008-06-28 01:23:07 UTC (rev 
4210)
@@ -221,7 +221,7 @@
                                        # we are using a tuple/list of keys. 
Find its position
                                        try:
                                                
self.setSelection(self.Keys.index(key))
-                                       except IndexError:
+                                       except ValueError:
                                                # No such key; write an info 
message, but otherwise ignore it.
                                                dabo.infoLog.write(_("Key '%s' 
not found") % key)
                                                continue




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to