Skip to content

Commit 634dc8f

Browse files
authored
Merge pull request #65 from maartenbreddels/patch-1
Do not lose cause of exception
2 parents be6d7e7 + fdf4d55 commit 634dc8f

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
@@ -41,7 +41,7 @@ def wrapped(self, *args, **kwargs):
4141
'You are trying to run nbclient in an environment where an '
4242
'event loop is already running. Please pass `nest_asyncio=True` in '
4343
'`NotebookClient.execute` and such methods.'
44-
)
44+
) from e
4545
raise
4646
return result
4747
wrapped.__doc__ = coro.__doc__

0 commit comments

Comments
 (0)