Skip to content

Commit

Permalink
Fixes AsyncContentsManager#exists
Browse files Browse the repository at this point in the history
  • Loading branch information
icankeep committed Jun 18, 2021
1 parent 450010e commit 186949d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/contents/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ async def exists(self, path):
exists : bool
Whether the target exists.
"""
return await (ensure_async(self.file_exists(path)) or ensure_async(self.dir_exists(path)))
return await ensure_async(self.file_exists(path)) or await ensure_async(self.dir_exists(path))

async def get(self, path, content=True, type=None, format=None):
"""Get a file or directory model."""
Expand Down

0 comments on commit 186949d

Please sign in to comment.