Skip to content

Commit cfef0f5

Browse files
authored
convert from ascii int value to int
1 parent bd52942 commit cfef0f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Hologram/HologramCloud.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,12 @@ def __parse_hologram_compact_result(self, result):
203203
return [ERR_UNKNOWN]
204204

205205
resultList = []
206-
for x in result:
207-
resultList.append(int(x))
206+
if isinstance(result, bytes):
207+
for x in result:
208+
resultList.append(int(chr(x)))
209+
else:
210+
for x in result:
211+
resultList.append(int(x))
208212

209213
if len(resultList) == 0:
210214
resultList = [ERR_UNKNOWN]

0 commit comments

Comments
 (0)