Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Oct 27, 2023
1 parent a66b51d commit 57eaddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_ydoc/yblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 57eaddb

Please sign in to comment.