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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 10 07:13:17 PDT 2015


Author: annakrat
Date: 2015-03-10 07:13:17 -0700 (Tue, 10 Mar 2015)
New Revision: 64827

Modified:
   grass/trunk/lib/python/script/array.py
Log:
script.array: fix returncode, unintended change of API in r62566

Modified: grass/trunk/lib/python/script/array.py
===================================================================
--- grass/trunk/lib/python/script/array.py	2015-03-10 08:02:51 UTC (rev 64826)
+++ grass/trunk/lib/python/script/array.py	2015-03-10 14:13:17 UTC (rev 64827)
@@ -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