[GRASS-SVN] r64830 - grass/branches/releasebranch_7_0/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 10 07:23:01 PDT 2015
Author: annakrat
Date: 2015-03-10 07:23:00 -0700 (Tue, 10 Mar 2015)
New Revision: 64830
Modified:
grass/branches/releasebranch_7_0/lib/python/script/array.py
Log:
script.array: fix returncode, unintended change of API in r62566 (merge from trunk, r64827)
Modified: grass/branches/releasebranch_7_0/lib/python/script/array.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/array.py 2015-03-10 14:21:22 UTC (rev 64829)
+++ grass/branches/releasebranch_7_0/lib/python/script/array.py 2015-03-10 14:23:00 UTC (rev 64830)
@@ -312,9 +312,9 @@
quiet=True,
overwrite=True)
except CalledModuleError:
- exit(1)
+ return 1
else:
- exit(0)
+ return 0
def write(self, mapname, null=None, overwrite=None):
"""Write array into 3D raster map
@@ -362,6 +362,6 @@
cols=reg['cols3'])
except CalledModuleError:
- exit(1)
+ return 1
else:
- exit(0)
+ return 0
More information about the grass-commit
mailing list