Skip to content

Exception during update with python 2.7 and UTF-8 path in contents file #4

@doctaweeks

Description

@doctaweeks

webapp-config exits with the exception below during an update where an entry in the contents file contains a non-ASCII character. Workaround: Running using python 3+ does not exhibit the same problem.

Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/webapp-config", line 42, in
main()
File "/usr/lib/python-exec/python2.7/webapp-config", line 39, in main
config.run()
File "/usr/lib64/python2.7/site-packages/WebappConfig/config.py", line 1501, in run
content.read()
File "/usr/lib64/python2.7/site-packages/WebappConfig/content.py", line 212, in read
+ line_split[3]] = line_split
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 27: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions