[GRASS-SVN] r62822 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 19 18:32:43 PST 2014


Author: wenzeslaus
Date: 2014-11-19 18:32:43 -0800 (Wed, 19 Nov 2014)
New Revision: 62822

Modified:
   grass/trunk/lib/python/script/core.py
Log:
pythonlib/script: ignore any errors from g.version which may segfault with incomplete build (see also #2351, r61589 and r62748)

Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2014-11-19 23:17:47 UTC (rev 62821)
+++ grass/trunk/lib/python/script/core.py	2014-11-20 02:32:43 UTC (rev 62822)
@@ -1464,7 +1464,7 @@
          'revision': '53670'}
 
     """
-    data = parse_command('g.version', flags='rge')
+    data = parse_command('g.version', flags='rge', errors='ignore')
     for k, v in data.iteritems():
         data[k.strip()] = v.replace('"', '').strip()
 



More information about the grass-commit mailing list