Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Names with % break it #68

Open
kittenswolf opened this issue Mar 19, 2020 · 1 comment
Open

Names with % break it #68

kittenswolf opened this issue Mar 19, 2020 · 1 comment

Comments

@kittenswolf
Copy link

>>> x = Bar("%", max=100)
>>> x.next()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kittenswolf/.local/lib/python3.6/site-packages/progress/__init__.py", line 120, in next
    self.update()
  File "/home/kittenswolf/.local/lib/python3.6/site-packages/progress/bar.py", line 36, in update
    message = self.message % self
ValueError: incomplete format```
@NiltonVolpato
Copy link
Owner

Yeah, maybe we should escape the input. A workaround is using "%%" for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants