Skip to content

Commit 7106c1f

Browse files
committed
Make trust handler use ensure_async
1 parent f56515e commit 7106c1f

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
@@ -294,7 +294,7 @@ class TrustNotebooksHandler(JupyterHandler):
294294
@web.authenticated
295295
async def post(self,path=''):
296296
cm = self.contents_manager
297-
await cm.trust_notebook(path)
297+
await ensure_async(cm.trust_notebook(path))
298298
self.set_status(201)
299299
self.finish()
300300
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)