We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 825f52d commit d8571e4Copy full SHA for d8571e4
can/interfaces/pcan/pcan.py
@@ -130,13 +130,13 @@ def bits(n):
130
if stsReturn[0] != PCAN_ERROR_OK:
131
text = "An error occurred. Error-code's text ({0:X}h) couldn't be retrieved".format(error)
132
else:
133
- text = stsReturn[1].decode('utf-8')
+ text = stsReturn[1].decode('utf-8', errors='replace')
134
135
strings.append(text)
136
137
complete_text = '\n'.join(strings)
138
139
- complete_text = stsReturn[1].decode('utf-8')
+ complete_text = stsReturn[1].decode('utf-8', errors='replace')
140
141
return complete_text
142
0 commit comments