On Jun 27, 2008, at 8:03 PM, Paul McNett wrote:
> File "/home/pmcnett/dabo/dabo/ui/uiwx/dControlItemMixin.py", line
> 223, in _setKeyValue
> self.setSelection(self.Keys.index(key))
> ValueError: list.index(x): x not in list
If you look at that line, the code is trapping a KeyError. The
exception raised when list.index() fails is a ValueError, not
KeyError. I just changed it; let me know if this change fixes it.
> Unfortunately, I don't know which control this is happening with.
> There
> are several dropdown lists in the dialog. That self.super() call is in
> an overridden update() method of the dialog.
Go to the line that raises the exception; it's always the last listed
in the traceback. Inevitably there will be a try: block that will be
catching the wrong exception class.
-- Ed Leafe
_______________________________________________
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]