Skip to content
Snippets Groups Projects
Commit f3552725 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #3060 from ctiller/sigwha

Expand error handling to ignore all errors printing output
parents 7d0c3f72 9f3b2d7f
No related branches found
No related tags found
No related merge requests found
......@@ -96,12 +96,12 @@ def message(tag, msg, explanatory_text=None, do_newline=False):
return
message.old_tag = tag
message.old_msg = msg
if platform.system() == 'Windows' or not sys.stdout.isatty():
if explanatory_text:
print explanatory_text
print '%s: %s' % (tag, msg)
return
try:
if platform.system() == 'Windows' or not sys.stdout.isatty():
if explanatory_text:
print explanatory_text
print '%s: %s' % (tag, msg)
return
sys.stdout.write('%s%s%s\x1b[%d;%dm%s\x1b[0m: %s%s' % (
_BEGINNING_OF_LINE,
_CLEAR_LINE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment