Fix leftover bytes not being represented in hex

This commit is contained in:
Dan 2020-11-30 12:46:44 +01:00
parent 68158d1053
commit 601483f210

View File

@ -33,7 +33,7 @@ class TLObject:
try: try:
return cast(TLObject, objects[int.from_bytes(data.read(4), "little")]).read(data, *args) return cast(TLObject, objects[int.from_bytes(data.read(4), "little")]).read(data, *args)
except KeyError as e: except KeyError as e:
left = data.read() left = data.read().hex()
left = [left[i:i + 64] for i in range(0, len(left), 64)] left = [left[i:i + 64] for i in range(0, len(left), 64)]
left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left] left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left]