Skip to content

Commit 32d6d8a

Browse files
committed
add ensure_async() wrapper
1 parent a06a655 commit 32d6d8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jupyter_rtc_core/rooms/yroom_file_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ async def get_jupyter_ydoc(self) -> YBaseDoc:
107107
"""
108108
# Get the content of the file from the given file ID.
109109
path = self.get_path()
110-
m = await self._contents_manager.get(path, type=self.file_type, format=self.file_format)
110+
m = await ensure_async(self._contents_manager.get(
111+
path,
112+
type=self.file_type,
113+
format=self.file_format
114+
))
111115
content = m['content']
112116

113117
# Initialize YDoc & YAwareness

0 commit comments

Comments
 (0)