Changeset 67001


Ignore:
Timestamp:
Dec 2, 2015, 1:04:05 AM (9 years ago)
Author:
neteler
Message:

g.search.modules: print error msg if python-termcolor is not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/scripts/g.search.modules/g.search.modules.py

    r66994 r67001  
    144144
    145145    if COLORIZE:
    146         from termcolor import colored
     146        try:
     147            from termcolor import colored
     148        except ImportError:
     149            grass.fatal(_("Cannot colorize, python-termcolor is not installed"))
    147150    else:
    148151        def colored(pattern, attrs):
Note: See TracChangeset for help on using the changeset viewer.