Vishal Pandey <[email protected]> added the comment:
hey Irit, Is this issue platform-dependent? I am on ubuntu 20.04, and running
python 3.10. I am not getting the same error that you have mentioned below.
This is what I am getting.
###################################
hello ...
Traceback (most recent call last):
File "error.py", line 17, in main
print(await fut)
TypeError: 42
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "error.py", line 21, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in
run_until_complete
return future.result()
File "error.py", line 19, in main
traceback.print_exception(e)
TypeError: print_exception() missing 2 required positional arguments: 'value'
and 'tb'
###########################################################
and if I replace traceback.print_exception method with the print method, It
runs perfectly fine, printing
hello ...
42
42
42
Can you please help me with this issue?
----------
nosy: +vishalpandeyvip
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45924>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com