mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: handle exception in case of logging Unicode characters
This commit is contained in:
parent
acddb8fca2
commit
3d83ce6d7a
@ -824,6 +824,9 @@ if os.name == 'nt':
|
||||
# an exception (however, the character is still written to the screen)
|
||||
# Ref https://github.com/espressif/esp-idf/issues/1136
|
||||
pass
|
||||
except UnicodeDecodeError:
|
||||
# In case of double byte Unicode characters display '?'
|
||||
self.output.write('?')
|
||||
|
||||
def write(self, data):
|
||||
if isinstance(data, bytes):
|
||||
|
Loading…
Reference in New Issue
Block a user