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

Encoding issue #4

Open
lesnake opened this issue Nov 30, 2020 · 0 comments
Open

Encoding issue #4

lesnake opened this issue Nov 30, 2020 · 0 comments

Comments

@lesnake
Copy link

lesnake commented Nov 30, 2020

Encoding issue due to binary characters in log.

File "/nfs/home/$USER/.local/lib/python2.7/site-packages/dbbot/reader/robot_results_parser.py", line 228, in _string_hash
return sha1(string.encode()).hexdigest() if string else None
UnicodeEncodeError: 'ascii' codec can't encode characters in position 711-712: ordinal not in range(128)

Solved using
return sha1(string.encode('utf-8')).hexdigest() if string else None
at line 227 of robot_results_parser.py

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

1 participant