X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e166644c534521f311e4f010b0829c7c9951e7a3..85bc0351f76f6d3f00460a167fc108b900e0725c:/utils/wxPython/lib/wxpTag.py diff --git a/utils/wxPython/lib/wxpTag.py b/utils/wxPython/lib/wxpTag.py index a4f372ec3f..afdfd4c1be 100644 --- a/utils/wxPython/lib/wxpTag.py +++ b/utils/wxPython/lib/wxpTag.py @@ -208,13 +208,13 @@ class wxpTagHandler(wxHtmlWinTagHandler): # convert to wxColour elif value[0] == '#': - #try: + try: red = string.atoi('0x'+value[1:3], 16) green = string.atoi('0x'+value[3:5], 16) blue = string.atoi('0x'+value[5:], 16) value = wxColor(red, green, blue) - #except: - # pass + except: + pass self.ctx.kwargs[name] = value return false