Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: await possible async dir_exists method #363

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

mwakaba2
Copy link
Member

When a custom contents manager is a sub class of AsyncContentsManager, and the dir_exists method is asynchronous, dir_exists is never await during file creation in the specified path.

Steps to reproduce error

  1. Run the server with a custom async contents manager that has an asynchronous dir_exists method.
  2. Create a notebook
RuntimeWarning: coroutine 'AsyncCustomContentsManager.dir_exists' was never awaited

Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevin-bates kevin-bates merged commit b328e0a into jupyter-server:master Dec 16, 2020
@Zsailer
Copy link
Member

Zsailer commented Dec 16, 2020

Thanks @mwakaba2 and @kevin-bates. I'll get a patch release out today.

@mwakaba2
Copy link
Member Author

thank you!

hMED22 pushed a commit to hMED22/jupyter_server that referenced this pull request Jan 23, 2023
…s-api

Fix: await possible async dir_exists method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants