Various errors using asyncio result in a traceback leading to line core.py:283, like this from the included code.py, which contains a task that tries to call a string:
code.py output:
Task exception wasn't retrieved
future: <Task object at 0x200275b0> coro= <coroutine object 'main' at 0x20004000>
Traceback (most recent call last):
File "code.py", line 11, in <module>
File "asyncio/core.py", line 235, in run
File "asyncio/core.py", line 230, in run_until_complete
File "asyncio/core.py", line 287, in call_exception_handler
File "asyncio/core.py", line 283, in default_exception_handler
AttributeError: 'module' object has no attribute 'print_exception'
Various errors using asyncio result in a traceback leading to line core.py:283, like this from the included code.py, which contains a task that tries to call a string:
If I change the sys.print_exception call to:
then the console output is:
The example code.py:
Running CP 7.1.0-beta.1 on a PyBadge, asyncio source code 0.50