Skip to content

Commit 5deaee6

Browse files
author
Golf Player
committed
Silly ignorant asyncio usage...
1 parent b94711f commit 5deaee6

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
@@ -94,7 +94,7 @@ async def ensure_async(obj):
9494
def run_hook(hook, *args):
9595
if hook is None:
9696
return
97-
if inspect.isawaitable(hook):
97+
if inspect.iscoroutinefunction(hook):
9898
future = hook(*args)
9999
else:
100100
loop = asyncio.get_event_loop()

0 commit comments

Comments
 (0)