mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Decode message only if encoding is known
When python does not know the encoding of stdout, sys.stdout.encoding is None. Then calling decode(None) raises an exception. We just skip decoding when the encoding is unknown.
This commit is contained in:
parent
c8c55a8961
commit
05e2471555
Loading…
Reference in New Issue
Block a user