Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problem in _setup() on non-English OS #346

@pochamarui

Description

@pochamarui

There's a problem in that code in 1.2.6:

 def _warn_import_error(exc):
        [...]
        _warn("ImportError: %s" % msg)

The _warn() call will throw a unicode-decode-error when run on a french OS, for instance:
<type 'exceptions.UnicodeDecodeError'> 'ascii' codec can't decode byte 0xe9 in position 59: ordinal not in range(128)

Possibly a missing .encode('utf-8') on msg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions