Skip to content

Commit

Permalink
Fix: await dir_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariko Wakabayashi committed Dec 15, 2020
1 parent a3a3a46 commit 7554712
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 7554712

Please sign in to comment.