[GRASS-SVN] r35063 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 27 11:52:58 EST 2008


Author: martinl
Date: 2008-12-27 11:52:58 -0500 (Sat, 27 Dec 2008)
New Revision: 35063

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: querying vector map crashes wxGUI (trac #415)
       attempt to fix 'display mode'


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2008-12-27 16:41:22 UTC (rev 35062)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2008-12-27 16:52:58 UTC (rev 35063)
@@ -85,6 +85,11 @@
             self.resultQ.put((requestId, self.requestCmd.run()))
 
             try:
+                returncode = self.requestCmd.module.returncode
+            except AttributeError:
+                returncode = 0 # being optimistic
+            
+            try:
                 aborted = self.requestCmd.aborted
             except AttributeError:
                 aborted = False
@@ -92,7 +97,7 @@
             time.sleep(.1)
             
             event = wxCmdDone(aborted=aborted,
-                              returncode=self.requestCmd.module.returncode,
+                              returncode=returncode,
                               time=requestTime,
                               pid=requestId)
             



More information about the grass-commit mailing list