[issue42848] asyncio produces an unexpected traceback with recursive __getattribute__
asleep-cult
report at bugs.python.org
Wed Jan 6 22:10:25 EST 2021
asleep-cult <asleep.cult at gmail.com> added the comment:
Didn't show enough of the traceback to show that the latter does not suppress the Test exception
Traceback (most recent call last):
File "c:/Development/test/test.py", line 11, in bar
x()
File "c:/Development/test/test.py", line 7, in x
raise Test('Hello World!')
__main__.Test: Hello World!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/Development/test/test.py", line 19, in <module>
bar()
File "c:/Development/test/test.py", line 14, in bar
bar()
File "c:/Development/test/test.py", line 14, in bar
bar()
File "c:/Development/test/test.py", line 14, in bar
bar()
[Previous line repeated 994 more times]
File "c:/Development/test/test.py", line 11, in bar
x()
File "c:/Development/test/test.py", line 7, in x
raise Test('Hello World!')
RecursionError: maximum recursion depth exceeded while calling a Python object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/Development/test/test.py", line 21, in <module>
traceback.print_exc()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 163, in print_exc
print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 103, in print_exception
for line in TracebackException(
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 493, in __init__
context = TracebackException(
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 493, in __init__
context = TracebackException(
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 493, in __init__
context = TracebackException(
[Previous line repeated 495 more times]
RecursionError: maximum recursion depth exceeded
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42848>
_______________________________________
More information about the Python-bugs-list
mailing list