Skip to content

Commit

Permalink
Make trust handler use ensure_async
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Jan 5, 2021
1 parent f56515e commit 7106c1f
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 @@ -294,7 +294,7 @@ class TrustNotebooksHandler(JupyterHandler):
@web.authenticated
async def post(self,path=''):
cm = self.contents_manager
await cm.trust_notebook(path)
await ensure_async(cm.trust_notebook(path))
self.set_status(201)
self.finish()
#-----------------------------------------------------------------------------
Expand Down

0 comments on commit 7106c1f

Please sign in to comment.