[GRASS-SVN] r48575 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 30 10:58:21 EDT 2011


Author: martinl
Date: 2011-09-30 07:58:21 -0700 (Fri, 30 Sep 2011)
New Revision: 48575

Modified:
   grass/trunk/lib/python/task.py
Log:
pythonlib: get_interface_description(): comment-out problematic code (fails on debug)
          (merge r48573 from devbr6)


Modified: grass/trunk/lib/python/task.py
===================================================================
--- grass/trunk/lib/python/task.py	2011-09-30 14:54:50 UTC (rev 48574)
+++ grass/trunk/lib/python/task.py	2011-09-30 14:58:21 UTC (rev 48575)
@@ -433,9 +433,9 @@
         raise ScriptError, _("Unable to fetch interface description for command '%(cmd)s'."
                              "\n\nDetails: %(det)s") % { 'cmd' : cmd, 'det' : e }
     
-    if cmderr and cmderr[:7] != 'WARNING':
-        raise ScriptError, _("Unable to fetch interface description for command '%(cmd)s'."
-                             "\n\nDetails: %(det)s") % { 'cmd': cmd, 'det' : decode(cmderr) }
+    # if cmderr and cmderr[:7] != 'WARNING':
+    # raise ScriptError, _("Unable to fetch interface description for command '%(cmd)s'."
+    # "\n\nDetails: %(det)s") % { 'cmd': cmd, 'det' : decode(cmderr) }
     
     return cmdout.replace('grass-interface.dtd', os.path.join(os.getenv('GISBASE'), 'etc', 'grass-interface.dtd'))
 



More information about the grass-commit mailing list