Skip to content

Commit

Permalink
Make failure in the absence of color more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
bstrie committed Feb 12, 2012
1 parent fbe85fe commit 53ef46e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build/rustic
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ try:
term_yellow = Fore.YELLOW + Style.BRIGHT
term_red = Fore.RED + Style.BRIGHT
term_reset = Fore.RESET + Style.RESET_ALL
except ImportError: # If we still can't find colorama
except: # If anything at all is wrong with colorama, just disable all colors
print('[Warning]\nTerminal colors unavailable, apparently\n')
term_cyan = ''
term_green = ''
term_magenta = ''
term_yellow = ''
term_red = ''
term_reset = ''
term_cyan = term_green = term_magenta = term_yellow = term_red = term_reset = ''

scratch_name = '.rustic.scratch'
exe_suffix = ('' if os.name != 'nt' else '.exe')
Expand Down

0 comments on commit 53ef46e

Please sign in to comment.