[GRASS-SVN] r42952 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 29 15:44:44 EDT 2010
Author: martinl
Date: 2010-07-29 19:44:44 +0000 (Thu, 29 Jul 2010)
New Revision: 42952
Modified:
grass/trunk/gui/wxpython/gui_modules/gcmd.py
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: cosmetics
Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py 2010-07-29 19:34:56 UTC (rev 42951)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py 2010-07-29 19:44:44 UTC (rev 42952)
@@ -61,11 +61,10 @@
def __init__(self, message, parent = None):
caption = _('Error')
style = wx.OK | wx.ICON_ERROR | wx.CENTRE
-
exc_type, exc_value, exc_traceback = sys.exc_info()
if exc_traceback:
exception = traceback.format_exc()
- reason = exception.splitlines()[-2].split(':', 1)[-1].strip()
+ reason = exception.splitlines()[-1].split(':', 1)[-1].strip()
if Debug.get_level() > 0 and exc_traceback:
sys.stderr.write(exception)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2010-07-29 19:34:56 UTC (rev 42951)
+++ grass/trunk/gui/wxpython/wxgui.py 2010-07-29 19:44:44 UTC (rev 42952)
@@ -627,7 +627,7 @@
try:
gxwXml = workspace.ProcessWorkspaceFile(etree.parse(filename))
except Exception, e:
- gcmd.GError(parent = self.parent,
+ gcmd.GError(parent = self,
message = _("Reading workspace file <%s> failed.\n"
"Invalid file, unable to parse XML document.") % filename)
return
More information about the grass-commit
mailing list