diff --git a/pyVNC/pyDes.py b/pyVNC/pyDes.py index eea35ed..a11c35b 100644 --- a/pyVNC/pyDes.py +++ b/pyVNC/pyDes.py @@ -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: