[GRASS-SVN] r68209 - grass-addons/grass7/raster/r.randomforest

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 4 12:12:40 PDT 2016


Author: wenzeslaus
Date: 2016-04-04 12:12:40 -0700 (Mon, 04 Apr 2016)
New Revision: 68209

Modified:
   grass-addons/grass7/raster/r.randomforest/r.randomforest.py
Log:
r.randomforest: error message using script.fatal

Modified: grass-addons/grass7/raster/r.randomforest/r.randomforest.py
===================================================================
--- grass-addons/grass7/raster/r.randomforest/r.randomforest.py	2016-04-04 17:25:14 UTC (rev 68208)
+++ grass-addons/grass7/raster/r.randomforest/r.randomforest.py	2016-04-04 19:12:40 UTC (rev 68209)
@@ -150,7 +150,8 @@
         imp.find_module(module_name)
         return True
     except ImportError:
-        print(module_name + " python package not installed....exiting")
+        grass.fatal(_("{} Python package not installed."
+                      " Exiting").format(module_name))
         return False
 
 if module_exists("sklearn") == True:



More information about the grass-commit mailing list