[GRASS-SVN] r67001 - grass/trunk/scripts/g.search.modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 2 01:04:05 PST 2015
Author: neteler
Date: 2015-12-02 01:04:05 -0800 (Wed, 02 Dec 2015)
New Revision: 67001
Modified:
grass/trunk/scripts/g.search.modules/g.search.modules.py
Log:
g.search.modules: print error msg if python-termcolor is not installed
Modified: grass/trunk/scripts/g.search.modules/g.search.modules.py
===================================================================
--- grass/trunk/scripts/g.search.modules/g.search.modules.py 2015-12-01 21:53:43 UTC (rev 67000)
+++ grass/trunk/scripts/g.search.modules/g.search.modules.py 2015-12-02 09:04:05 UTC (rev 67001)
@@ -143,7 +143,10 @@
if COLORIZE:
- from termcolor import colored
+ try:
+ from termcolor import colored
+ except ImportError:
+ grass.fatal(_("Cannot colorize, python-termcolor is not installed"))
else:
def colored(pattern, attrs):
return pattern
More information about the grass-commit
mailing list