[issue36636] Inner exception is not being raised using asyncio.gather

2021-02-21 Thread Irit Katriel
Irit Katriel added the comment: "twisteroid ambassador"'s explanation is correct - you need to use the traceback module to render complete information about an exception. And indeed, return_exceptions=False gives you the first exception (not all of them) as explained here https://docs.pytho

[issue36636] Inner exception is not being raised using asyncio.gather

2019-04-15 Thread twisteroid ambassador
twisteroid ambassador added the comment: The difference is because you grabbed and print()ed the exception themselves in Script 2, while in Script 1 you let Python's built-in unhandled exception handler (sys.excepthook) print the traceback for you. If you want a traceback, then you need to p

[issue36636] Inner exception is not being raised using asyncio.gather

2019-04-15 Thread Drew Budwin
New submission from Drew Budwin : Using Python 3.7, I am trying to catch an exception and re-raise it by following an example I found on StackOverflow (https://stackoverflow.com/a/6246394/1595510). While the example does work, it doesn't seem to work for all situations. Below I have two async