Skip to content

Encoding issue #4

Description

@lesnake

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions