tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

Password with '%' character on ~/.config/amcrest.conf fails #76

Closed tchellomello closed 7 years ago

tchellomello commented 7 years ago

Password with '%' character on ~/.config/amcrest.conf fails with the errro below:

Traceback (most recent call last):
  File "/home/mdemello/.virtualenvs/amcrestchime/bin/amcrest-cli", line 960, in <module>
    main()
  File "/home/mdemello/.virtualenvs/amcrestchime/bin/amcrest-cli", line 508, in main
    args.password = config.get(section, 'password')
  File "/usr/lib64/python3.5/configparser.py", line 797, in get
    d)
  File "/usr/lib64/python3.5/configparser.py", line 393, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib64/python3.5/configparser.py", line 443, in _interpolate_some
    "found: %r" % (rest,))
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "%test%"