diff --git a/pyindi/device.py b/pyindi/device.py index f7ca951..fa3c6e1 100644 --- a/pyindi/device.py +++ b/pyindi/device.py @@ -761,7 +761,7 @@ def value(self) -> str: b64data = "" else: try: - b64data = base64.b64encode(self.data).decode() + b64data = base64.encodebytes(self.data).decode() except TypeError: b64data = "" logging.warning(f"Could not convert {type(self.data)} to base64")