Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyVNC/pyDes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,8 +1192,11 @@ def __String_to_BitList(self, data):
if isinstance(data, list):
if isinstance(data[0], bytes):
data = b"".join(data)
elif all(isinstance(c, int) and 0 <= c <= 255 for c in data):
print("Something unexpect, but still useable.")
pass # good
else:
raise Exception("__String_to_BitList: Unexpected input")
raise Exception("__String_to_BitList: Unexpected input: got", type(data), type(data[0]))
elif isinstance(data, bytes):
pass # good
else:
Expand Down