Skip to content

Commit b328e0a

Browse files
authored
Merge pull request #363 from mwakaba2/fix-async-contents-api
Fix: await possible async dir_exists method
2 parents a3a3a46 + 7554712 commit b328e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/contents/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async def post(self, path=''):
180180
if file_exists:
181181
raise web.HTTPError(400, "Cannot POST to files, use PUT instead.")
182182

183-
dir_exists = cm.dir_exists(path)
183+
dir_exists = await ensure_async(cm.dir_exists(path))
184184
if not dir_exists:
185185
raise web.HTTPError(404, "No such directory: %s" % path)
186186

0 commit comments

Comments
 (0)