dont hide real exceptions

This commit is contained in:
Nick Sweeting 2017-07-05 17:15:39 -05:00
parent 4db30779a3
commit 6bb91fbb45
2 changed files with 4 additions and 2 deletions

View file

@ -168,7 +168,7 @@ def progress(seconds=TIMEOUT, prefix=''):
def end():
"""immediately finish progress and clear the progressbar line"""
p.terminate()
sys.stdout.write('\r{}\r'.format(' ' * TERM_WIDTH)) # clear whole terminal line
sys.stdout.write('\r{}{}\r'.format((' ' * TERM_WIDTH), ANSI['reset'])) # clear whole terminal line
sys.stdout.flush()
return end