[GRASS-SVN] r42953 - in grass/branches/develbranch_6/gui/wxpython:
. gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 29 15:46:31 EDT 2010
Author: martinl
Date: 2010-07-29 19:46:31 +0000 (Thu, 29 Jul 2010)
New Revision: 42953
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: cosmetics
(merge r42952 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py 2010-07-29 19:44:44 UTC (rev 42952)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py 2010-07-29 19:46:31 UTC (rev 42953)
@@ -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/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py 2010-07-29 19:44:44 UTC (rev 42952)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py 2010-07-29 19:46:31 UTC (rev 42953)
@@ -618,7 +618,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