Skip to content

Commit

Permalink
Merge 03cf419 into 27eefa0
Browse files Browse the repository at this point in the history
  • Loading branch information
abs51295 committed Feb 7, 2018
2 parents 27eefa0 + 03cf419 commit 08328dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edward/util/progbar.py
Expand Up @@ -80,7 +80,10 @@ def update(self, current, values=None, force=False):
bar += ' '
prog_width = int(self.width * float(current) / self.target)
if prog_width > 0:
bar += ('█' * prog_width)
try:
bar += ('█' * prog_width)
except UnicodeEncodeError:
bar += ('*' * prog_width)

bar += (' ' * (self.width - prog_width))
sys.stdout.write(bar)
Expand Down

0 comments on commit 08328dd

Please sign in to comment.