dabo Commit
Revision 7174
Date: 2012-05-09 09:02:23 -0700 (Wed, 09 May 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7174

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

Log:
Added catch for the case where there are no records.

Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2012-05-02 19:13:02 UTC (rev 7173)
+++ trunk/dabo/ui/uiwx/dGrid.py 2012-05-09 16:02:23 UTC (rev 7174)
@@ -570,7 +570,7 @@
        def _setRenderer(self):
                try:
                        typ = type(self.Value)
-               except dException.FieldNotFoundException:
+               except (dException.FieldNotFoundException, 
dException.NoRecordsException):
                        typ = None
                self._rendererClass = self.defaultRenderers.get(typ, 
self.stringRendererClass)
 



_______________________________________________
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