From 57eaddbda9c72aad320412897cc17d36230cfe43 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Fri, 27 Oct 2023 10:43:04 +0200 Subject: [PATCH] Review --- jupyter_ydoc/yblob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_ydoc/yblob.py b/jupyter_ydoc/yblob.py index 9cfdcc0..96eeb78 100644 --- a/jupyter_ydoc/yblob.py +++ b/jupyter_ydoc/yblob.py @@ -56,7 +56,7 @@ def get(self) -> bytes: :return: Document's content. :rtype: bytes """ - return base64.b64decode(self._ysource["base64"].encode()) + return base64.b64decode(self._ysource.get("base64", "").encode()) def set(self, value: Union[bytes, str]) -> None: """