Skip to content

Commit 733423a

Browse files
author
Golf Player
committed
Silly ignorant asyncio usage...
1 parent 0bfcf02 commit 733423a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbclient/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def ensure_async(obj: Union[Awaitable, Any]) -> Any:
9696
def run_hook(hook, *args):
9797
if hook is None:
9898
return
99-
if inspect.isawaitable(hook):
99+
if inspect.iscoroutinefunction(hook):
100100
future = hook(*args)
101101
else:
102102
loop = asyncio.get_event_loop()

0 commit comments

Comments
 (0)