dabo Commit
Revision 6359
Date: 2011-01-31 19:54:31 -0800 (Mon, 31 Jan 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6359

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

Log:
Got an error report from a customer: TypeError: list indices must be integers, 
not NoneType.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-01-31 13:15:34 UTC (rev 6358)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-02-01 03:54:31 UTC (rev 6359)
@@ -3602,7 +3602,7 @@
                newCol = self._convertWxColNumToDaboColNum(evt.EventData["col"])
                try:
                        col = self.Columns[newCol]
-               except IndexError:
+               except (IndexError, TypeError):
                        col = None
 
                if col:



_______________________________________________
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