Skip to content

Commit

Permalink
Merge pull request #363 from mwakaba2/fix-async-contents-api
Browse files Browse the repository at this point in the history
Fix: await possible async dir_exists method
  • Loading branch information
kevin-bates authored Dec 16, 2020
2 parents a3a3a46 + 7554712 commit b328e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/contents/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def post(self, path=''):
if file_exists:
raise web.HTTPError(400, "Cannot POST to files, use PUT instead.")

dir_exists = cm.dir_exists(path)
dir_exists = await ensure_async(cm.dir_exists(path))
if not dir_exists:
raise web.HTTPError(404, "No such directory: %s" % path)

Expand Down

0 comments on commit b328e0a

Please sign in to comment.