Skip to content

Commit f944deb

Browse files
authored
Fix missing await when call 'async_replace_file' (#595)
1 parent 1a6a481 commit f944deb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_server/services/contents/fileio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ async def _read_notebook(self, os_path, as_version=4):
373373

374374
# Move the bad file aside, restore the intermediate, and try again.
375375
invalid_file = path_to_invalid(os_path)
376-
async_replace_file(os_path, invalid_file)
377-
async_replace_file(tmp_path, os_path)
376+
await async_replace_file(os_path, invalid_file)
377+
await async_replace_file(tmp_path, os_path)
378378
return await self._read_notebook(os_path, as_version)
379379

380380
async def _save_notebook(self, os_path, nb):

0 commit comments

Comments
 (0)