[GRASS-SVN] r54416 - grass-addons/grass7/raster/r.agent

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 27 06:54:33 PST 2012


Author: mic
Date: 2012-12-27 06:54:22 -0800 (Thu, 27 Dec 2012)
New Revision: 54416

Modified:
   grass-addons/grass7/raster/r.agent/r.agent.aco
Log:
use grass messages instead of print

Modified: grass-addons/grass7/raster/r.agent/r.agent.aco
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.aco	2012-12-27 14:10:32 UTC (rev 54415)
+++ grass-addons/grass7/raster/r.agent/r.agent.aco	2012-12-27 14:54:22 UTC (rev 54416)
@@ -255,12 +255,11 @@
     try:
         world.checkvalues()
         world.letantsdance()
-        print "FINISH"
+        grass.message("FINISH")
     except error.DataError:
-        print "Failed to parse args.."
+        grass.fatal_error("Failed to parse args..")
         sys.exit(1)
 
-
 if __name__ == "__main__":
     options, flags = grass.parser()
     main()



More information about the grass-commit mailing list