[GRASS-SVN] r57097 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 14 01:22:40 PDT 2013


Author: martinl
Date: 2013-07-14 01:22:40 -0700 (Sun, 14 Jul 2013)
New Revision: 57097

Modified:
   grass/trunk/gui/wxpython/core/gcmd.py
Log:
wxGUI: RunCommand() print debug if no parent defined

Modified: grass/trunk/gui/wxpython/core/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/core/gcmd.py	2013-07-13 17:56:12 UTC (rev 57096)
+++ grass/trunk/gui/wxpython/core/gcmd.py	2013-07-14 08:22:40 UTC (rev 57097)
@@ -672,11 +672,13 @@
                   (ret, (time.time() - start)))
     
     Debug.msg(3, "gcmd.RunCommand(): print error")
-    if ret != 0 and parent:
-        Debug.msg(2, "gcmd.RunCommand(): error %s" % stderr)
-        if (stderr == None):
+    if ret != 0:
+        if stderr:
+            Debug.msg(2, "gcmd.RunCommand(): error %s" % stderr)
+        else:
             Debug.msg(2, "gcmd.RunCommand(): nothing to print ???")
-        else:
+        
+        if parent:
             GError(parent = parent,
                    caption = _("Error in %s") % prog,
                    message = stderr)



More information about the grass-commit mailing list