Explorar o código

wxGUI: continue fix for https://trac.osgeo.org/grass/ticket/2827

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67205 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=9) %!d(string=hai) anos
pai
achega
8617bf6bd7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -2341,7 +2341,7 @@ class CmdPanel(wx.Panel):
                                    ignoreRequired = ignoreRequired)
         except ValueError as err:
             dlg = wx.MessageDialog(parent = self,
-                                   message = unicode(err),
+                                   message = gcmd.DecodeString(str(err)),
                                    caption = _("Error in %s") % self.task.name,
                                    style = wx.OK | wx.ICON_ERROR | wx.CENTRE)
             dlg.ShowModal()