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

The ConfigParser cannot handle '%' in set method (date format) #16

Open
milanbalazs opened this issue Apr 5, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@milanbalazs
Copy link
Owner

The "original" config parser is not able to handle the "%" character in the set method.

Error:

  File "/usr/lib/python3.6/configparser.py", line 1193, in set
    super().set(section, option, value)
  File "/usr/lib/python3.6/configparser.py", line 894, in set
    value)
  File "/usr/lib/python3.6/configparser.py", line 402, in before_set
    "position %d" % (value, tmp_value.find('%')))
ValueError: invalid interpolation syntax in '%Y.%m.%d.' at position 0

Solution hint

@milanbalazs milanbalazs added the bug Something isn't working label Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant