Skip to content

Commit 4fe5457

Browse files
authored
Fix encoding issue
1 parent 31c37c2 commit 4fe5457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openxc/sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def run(self):
203203
except MissingPayloadFormatError:
204204
json_chars = ['\x00']
205205
json_chars.extend(string.printable)
206-
if all((chr(char) in json_chars for char in payload)):
206+
if all((char in json_chars for char in payload)):
207207
self.format = "json"
208208
else:
209209
self.format = "protobuf"

0 commit comments

Comments
 (0)