diff frontends/wix/xmlui.py @ 149:3c3f70c01333

Primitivus: wix: xmlui misc fixes
author Goffi <goffi@goffi.org>
date Wed, 28 Jul 2010 19:56:56 +0800
parents 7452ac3818e7
children 9ee4a1d0d7fb
line wrap: on
line diff
--- a/frontends/wix/xmlui.py	Wed Jul 28 19:56:12 2010 +0800
+++ b/frontends/wix/xmlui.py	Wed Jul 28 19:56:56 2010 +0800
@@ -71,7 +71,7 @@
             elif type=="text":
                 try:
                     value = elem.childNodes[0].wholeText
-                except KeyError:
+                except IndexError:
                     warning (_("text node has no child !"))
                 ctrl = wx.StaticText(parent, -1, value)
             elif type=="label":